Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001158/0.001158, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002019/0.002019, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.8 MB, free: 10.57 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002048/0.002049, allocations: 63.44 kB / 306.9 MB, free: 0.625 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1672/0.1693, allocations: 50.53 MB / 357.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.01117/0.1805, allocations: 6.019 MB / 363.5 MB, free: 8.047 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006118/0.1867, allocations: 1.733 MB / 365.2 MB, free: 6.309 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002716/0.1895, allocations: 27.88 kB / 365.2 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001465/0.191, allocations: 249.6 kB / 365.5 MB, free: 6.035 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002182/0.1932, allocations: 225.7 kB / 365.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002906/0.1961, allocations: 0.511 MB / 366.2 MB, free: 5.301 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003928/0.2001, allocations: 1.395 MB / 367.6 MB, free: 3.898 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001869/0.202, allocations: 0.6169 MB / 368.2 MB, free: 3.262 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001354/0.2034, allocations: 478.1 kB / 368.7 MB, free: 2.793 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001447/0.2049, allocations: 0.4934 MB / 369.2 MB, free: 2.297 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007304/0.2057, allocations: 124 kB / 369.3 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005847/0.2063, allocations: 143.9 kB / 369.4 MB, free: 2.035 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003396/0.2066, allocations: 267 kB / 369.7 MB, free: 1.773 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009138/0.2076, allocations: 0.61 MB / 370.3 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.279/0.4866, allocations: 1.571 MB / 371.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.4867, allocations: 4.344 kB / 371.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.4867, allocations: 0.625 kB / 371.9 MB, free: 12.8 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001278/0.4868, allocations: 0 / 371.9 MB, free: 12.8 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 306 * Number of variables: 306 Notification: Performance of Generate backend data structure: time 0.004926/0.4918, allocations: 1.468 MB / 373.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.293e-05/0.4919, allocations: 9.156 kB / 373.4 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008976/0.4928, allocations: 161.1 kB / 373.5 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/0.4946, allocations: 0.7251 MB / 374.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001202/0.4947, allocations: 87.66 kB / 374.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002877/0.495, allocations: 122.3 kB / 374.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003524/0.4985, allocations: 1.267 MB / 375.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.644e-05/0.4987, allocations: 11.12 kB / 375.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000154/0.4988, allocations: 51 kB / 375.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.568e-05/0.4989, allocations: 32.12 kB / 375.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001866/0.5008, allocations: 0.6869 MB / 376.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007012/0.5078, allocations: 6.813 MB / 383.3 MB, free: 6.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007918/0.5086, allocations: 271.7 kB / 383.6 MB, free: 6.109 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004444/0.5091, allocations: 178 kB / 383.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002998/0.5094, allocations: 91.94 kB / 383.8 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.737e-05/0.5095, allocations: 37.88 kB / 383.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of pre-optimization done (n=27): time 3.467e-06/0.5095, allocations: 0 / 383.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=29): time 0.003376/0.5128, allocations: 1.397 MB / 385.3 MB, free: 4.871 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.521e-05/0.5129, allocations: 84.03 kB / 385.4 MB, free: 4.777 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009483/0.5139, allocations: 0.6623 MB / 386 MB, free: 4.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.414e-05/0.5139, allocations: 30.92 kB / 386.1 MB, free: 4.445 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000476/0.5144, allocations: 0.6832 MB / 386.7 MB, free: 3.906 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.79e-05/0.5145, allocations: 117.6 kB / 386.9 MB, free: 3.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001901/0.5147, allocations: 148 kB / 387 MB, free: 3.734 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.5149, allocations: 388 kB / 387.4 MB, free: 3.387 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003212/0.5152, allocations: 144.3 kB / 387.5 MB, free: 3.344 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005125/0.5157, allocations: 0.5563 MB / 388.1 MB, free: 2.738 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y ($START.inverseCapacitor1.capacitor.v = $START.directCapacitor1.currentToVoltage.y) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y ($START.inverseInductor3.inductor.i = $START.directInductor3.currentToVoltage.y) Notification: Performance of analyzeInitialSystem (initialization): time 0.001229/0.517, allocations: 0.9583 MB / 389 MB, free: 1.859 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/0.517, allocations: 4.656 kB / 389 MB, free: 1.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001678/0.5187, allocations: 0.7948 MB / 389.8 MB, free: 1.59 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.759e-05/0.5187, allocations: 13.91 kB / 389.8 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.888e-05/0.5188, allocations: 19.28 kB / 389.9 MB, free: 1.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000349/0.5191, allocations: 78.3 kB / 389.9 MB, free: 1.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000603/0.5198, allocations: 179.8 kB / 390.1 MB, free: 1.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002757/0.5225, allocations: 3.336 MB / 393.5 MB, free: 14.33 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007374/0.5233, allocations: 31.34 kB / 393.5 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.976e-05/0.5234, allocations: 45.45 kB / 393.5 MB, free: 14.31 MB / 318.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: directCapacitor1.currentToVoltage.y = $START.directCapacitor1.currentToVoltage.y directInductor3.currentToVoltage.y = $START.directInductor3.currentToVoltage.y. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005949/0.524, allocations: 269.2 kB / 393.8 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001667/0.5242, allocations: 74.66 kB / 393.9 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001413/0.5243, allocations: 75.09 kB / 393.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.85e-06/0.5243, allocations: 4 kB / 393.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.072e-05/0.5244, allocations: 5.375 kB / 393.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.106e-06/0.5244, allocations: 2.75 kB / 393.9 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002698/0.5271, allocations: 1.247 MB / 395.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.5271, allocations: 0 / 395.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003384/0.5275, allocations: 65.08 kB / 395.3 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002088/0.5277, allocations: 56.27 kB / 395.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.652e-05/0.5277, allocations: 12.36 kB / 395.3 MB, free: 13.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002642/0.5304, allocations: 3.059 MB / 398.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.5304, allocations: 2.219 kB / 398.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001332/0.5317, allocations: 0.6377 MB / 399 MB, free: 9.816 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002867/0.5321, allocations: 141 kB / 399.2 MB, free: 9.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.368e-05/0.5321, allocations: 7.406 kB / 399.2 MB, free: 9.676 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000304/0.5324, allocations: 25.61 kB / 399.2 MB, free: 9.664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.707e-05/0.5325, allocations: 25.72 kB / 399.2 MB, free: 9.66 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.113e-05/0.5326, allocations: 7.344 kB / 399.2 MB, free: 9.66 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007216/0.5333, allocations: 442.4 kB / 399.7 MB, free: 9.469 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5333, allocations: 0 / 399.7 MB, free: 9.469 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0018/0.5351, allocations: 155.4 kB / 399.8 MB, free: 9.453 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (inverseInductor3.inductor.i,inductor4a.i,inductor4b.i,directCapacitor1.currentToVoltage.y,capacitor2a.v,capacitor2b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002859/0.5354, allocations: 112.5 kB / 399.9 MB, free: 9.355 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.537, allocations: 0.6658 MB / 400.6 MB, free: 9.012 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.211e-06/0.537, allocations: 5.125 kB / 400.6 MB, free: 9.008 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006436/0.5377, allocations: 364.7 kB / 400.9 MB, free: 8.742 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008392/0.5385, allocations: 79.5 kB / 401 MB, free: 8.699 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004069/0.5426, allocations: 1.839 MB / 402.9 MB, free: 7.602 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008014/0.5434, allocations: 1.034 MB / 403.9 MB, free: 6.887 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003962/0.5439, allocations: 83.73 kB / 404 MB, free: 6.867 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000126/0.544, allocations: 57.36 kB / 404 MB, free: 6.855 MB / 318.1 MB Notification: Performance of SimCode: time 1.002e-06/0.544, allocations: 0 / 404 MB, free: 6.855 MB / 318.1 MB Notification: Performance of Templates: time 0.01525/0.5592, allocations: 5.418 MB / 409.5 MB, free: 4.238 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches