Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006692/0.006692, allocations: 181.5 kB / 17.41 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.006/4.006, allocations: 205.4 MB / 223.6 MB, free: 8.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001198/0.001198, allocations: 91.39 kB / 271.9 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000657/0.0006571, allocations: 8 kB / 328.1 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5996/0.6003, allocations: 47.58 MB / 375.7 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2447/0.8451, allocations: 83.52 MB / 459.2 MB, free: 13.09 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000672/0.8459, allocations: 71.97 kB / 459.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1315/0.9775, allocations: 18.6 MB / 477.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 6.592e-06/0.9776, allocations: 4 kB / 477.9 MB, free: 10.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002516/0.9779, allocations: 31.98 kB / 478 MB, free: 10.08 MB / 362.7 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.00638/0.9843, allocations: 1.224 MB / 479.2 MB, free: 8.801 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001073/0.9844, allocations: 8.031 kB / 479.2 MB, free: 8.793 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001117/0.9856, allocations: 139.2 kB / 479.3 MB, free: 8.656 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007786/0.9934, allocations: 0.665 MB / 480 MB, free: 7.945 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003504/0.9939, allocations: 86.78 kB / 480.1 MB, free: 7.859 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008452/0.9948, allocations: 124.4 kB / 480.2 MB, free: 7.738 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007601/1.002, allocations: 1.257 MB / 481.5 MB, free: 6.309 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001673/1.003, allocations: 11.88 kB / 481.5 MB, free: 6.297 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004643/1.003, allocations: 59.94 kB / 481.5 MB, free: 6.238 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.319e-05/1.003, allocations: 32 kB / 481.6 MB, free: 6.207 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008881/1.012, allocations: 0.6851 MB / 482.2 MB, free: 5.523 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02583/1.038, allocations: 6.859 MB / 489.1 MB, free: 14.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001837/1.04, allocations: 269.3 kB / 489.4 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008243/1.041, allocations: 177.6 kB / 489.5 MB, free: 13.87 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000451/1.042, allocations: 89.08 kB / 489.6 MB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001046/1.042, allocations: 46.56 kB / 489.7 MB, free: 13.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=27): time 1.063e-05/1.042, allocations: 0 / 489.7 MB, free: 13.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.01004/1.052, allocations: 1.408 MB / 491.1 MB, free: 12.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001277/1.052, allocations: 85.09 kB / 491.2 MB, free: 12.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004678/1.057, allocations: 0.653 MB / 491.8 MB, free: 11.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001634/1.057, allocations: 29.7 kB / 491.8 MB, free: 11.39 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001462/1.058, allocations: 0.6836 MB / 492.5 MB, free: 10.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000375/1.059, allocations: 118.5 kB / 492.6 MB, free: 10.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.42e-05/1.059, allocations: 12 kB / 492.7 MB, free: 10.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0006269/1.06, allocations: 390.7 kB / 493 MB, free: 10.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008115/1.06, allocations: 141.9 kB / 493.2 MB, free: 10.04 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001571/1.062, allocations: 0.5624 MB / 493.7 MB, free: 9.281 MB / 378.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseCapacitor1.capacitor.v = $START.inverseCapacitor1.capacitor.v ($START.directCapacitor1.currentToVoltage.y = $START.inverseCapacitor1.capacitor.v) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: inverseInductor3.inductor.i = $START.inverseInductor3.inductor.i ($START.directInductor3.currentToVoltage.y = $START.inverseInductor3.inductor.i) Notification: Performance of analyzeInitialSystem (initialization): time 0.002723/1.065, allocations: 0.9605 MB / 494.7 MB, free: 8.086 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.91e-05/1.065, allocations: 4 kB / 494.7 MB, free: 8.082 MB / 378.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.008213/1.073, allocations: 0.7883 MB / 495.5 MB, free: 7.281 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001051/1.073, allocations: 12 kB / 495.5 MB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.734e-05/1.073, allocations: 16 kB / 495.5 MB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005365/1.074, allocations: 77.62 kB / 495.6 MB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001102/1.075, allocations: 188.1 kB / 495.8 MB, free: 6.988 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006144/1.081, allocations: 2.97 MB / 498.7 MB, free: 3.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/1.083, allocations: 36.06 kB / 498.8 MB, free: 3.715 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002602/1.083, allocations: 44 kB / 498.8 MB, free: 3.672 MB / 378.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: inverseCapacitor1.capacitor.v = $START.inverseCapacitor1.capacitor.v inverseInductor3.inductor.i = $START.inverseInductor3.inductor.i. 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001345/1.084, allocations: 273.4 kB / 499.1 MB, free: 3.395 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003616/1.085, allocations: 75.06 kB / 499.2 MB, free: 3.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002205/1.087, allocations: 70.41 kB / 499.2 MB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.986e-05/1.087, allocations: 4 kB / 499.2 MB, free: 3.246 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-05/1.087, allocations: 7.938 kB / 499.2 MB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/1.087, allocations: 7.938 kB / 499.2 MB, free: 3.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004398/1.092, allocations: 1.251 MB / 0.4888 GB, free: 1.906 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.175e-06/1.092, allocations: 0 / 0.4888 GB, free: 1.906 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005805/1.092, allocations: 59.97 kB / 0.4888 GB, free: 1.848 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000299/1.092, allocations: 61.61 kB / 0.4889 GB, free: 1.781 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.132e-05/1.093, allocations: 4.047 kB / 0.4889 GB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5847/1.677, allocations: 2.76 MB / 0.4916 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.275e-05/1.677, allocations: 1.344 kB / 0.4916 GB, free: 100.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002469/1.68, allocations: 0.6521 MB / 0.4922 GB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004342/1.68, allocations: 137.8 kB / 0.4924 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002342/1.681, allocations: 10.81 kB / 0.4924 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006368/1.681, allocations: 19.09 kB / 0.4924 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/1.682, allocations: 30.23 kB / 0.4924 GB, free: 100.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-05/1.682, allocations: 11.44 kB / 0.4924 GB, free: 100.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001699/1.683, allocations: 430.8 kB / 0.4928 GB, free: 100.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.92e-07/1.683, allocations: 0 / 0.4928 GB, free: 100.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002303/1.686, allocations: 160.9 kB / 0.493 GB, free: 100.1 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003242/1.686, allocations: 109.7 kB / 0.4931 GB, free: 100 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002129/1.688, allocations: 0.6572 MB / 0.4937 GB, free: 99.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/1.688, allocations: 0 / 0.4937 GB, free: 99.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009813/1.689, allocations: 365.4 kB / 0.4941 GB, free: 99.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001954/1.691, allocations: 74.5 kB / 0.4942 GB, free: 99.58 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01229/1.703, allocations: 2.358 MB / 0.4965 GB, free: 98.25 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001732/1.705, allocations: 1.039 MB / 0.4975 GB, free: 97.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000458/1.706, allocations: 62.06 kB / 0.4975 GB, free: 97.53 MB / 378.7 MB Notification: Performance of SimCode: time 2.004e-06/1.706, allocations: 0 / 0.4975 GB, free: 97.53 MB / 378.7 MB Notification: Performance of Templates: time 0.05456/1.76, allocations: 19.35 MB / 0.5164 GB, free: 92.35 MB / 378.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches