Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001132/0.001132, allocations: 80.72 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 147 kB / 25.59 MB, free: 8.605 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9198/0.9198, allocations: 173.4 MB / 202.2 MB, free: 8.309 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") translateModel(Modelica.Electrical.Analog.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|capacitor2a.v|capacitor2b.v|directCapacitor1.capacitor.v|directInductor3.inductor.i|inductor4a.i|inductor4b.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.693e-06/1.693e-06, allocations: 0 / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.089e-05/2.258e-05, allocations: 2.312 kB / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.GenerationOfFMUs): time 0.00578/0.005802, allocations: 5.571 MB / 274.8 MB, free: 4.176 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002995/0.008798, allocations: 1.635 MB / 276.4 MB, free: 2.547 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007079/0.009506, allocations: 39.69 kB / 276.5 MB, free: 2.508 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005446/0.01005, allocations: 249.6 kB / 276.7 MB, free: 2.262 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005774/0.01063, allocations: 247.2 kB / 276.9 MB, free: 2.02 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001007/0.01163, allocations: 0.5054 MB / 277.4 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00139/0.01302, allocations: 1.43 MB / 278.9 MB, free: 84 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006452/0.01367, allocations: 424.2 kB / 279.3 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001085/0.01475, allocations: 0.7367 MB / 280 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004039/0.01516, allocations: 338.8 kB / 280.4 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001398/0.0153, allocations: 120 kB / 280.5 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002/0.0155, allocations: 144 kB / 280.6 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001735/0.01567, allocations: 271 kB / 280.9 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003247/0.016, allocations: 394.9 kB / 281.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009523/0.01695, allocations: 0.9375 MB / 282.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.01695, allocations: 0 / 282.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.01695, allocations: 0 / 282.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.722e-05/0.01697, allocations: 0 / 282.2 MB, free: 12.72 MB / 266.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.001671/0.01864, allocations: 1.528 MB / 283.7 MB, free: 11.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.01868, allocations: 8.031 kB / 283.7 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002543/0.01893, allocations: 247.1 kB / 284 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009158/0.01985, allocations: 0.7292 MB / 284.7 MB, free: 10.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.736e-05/0.01991, allocations: 90.41 kB / 284.8 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001332/0.02005, allocations: 127.9 kB / 284.9 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.0213, allocations: 1.161 MB / 286.1 MB, free: 8.527 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.328e-05/0.02133, allocations: 11.94 kB / 286.1 MB, free: 8.516 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.216e-05/0.02141, allocations: 56 kB / 286.2 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.849e-05/0.02144, allocations: 39.88 kB / 286.2 MB, free: 8.422 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005833/0.02202, allocations: 373.5 kB / 286.6 MB, free: 8.055 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005384/0.02741, allocations: 8.273 MB / 294.8 MB, free: 15.41 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004375/0.02784, allocations: 198.5 kB / 295 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001838/0.02803, allocations: 115.5 kB / 295.1 MB, free: 15.07 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.445e-05/0.02809, allocations: 11.98 kB / 295.1 MB, free: 15.05 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.02812, allocations: 45.33 kB / 295.2 MB, free: 15 MB / 282.7 MB Notification: Performance of pre-optimization done (n=27): time 2.144e-06/0.02813, allocations: 0 / 295.2 MB, free: 15 MB / 282.7 MB Notification: Performance of matching and sorting (n=29): time 0.001393/0.02952, allocations: 0.7795 MB / 296 MB, free: 14.14 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.02956, allocations: 85.11 kB / 296.1 MB, free: 14.04 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006079/0.03017, allocations: 0.6704 MB / 296.7 MB, free: 13.36 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.471e-05/0.03019, allocations: 33.7 kB / 296.8 MB, free: 13.32 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004642/0.03066, allocations: 0.751 MB / 297.5 MB, free: 12.55 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.689e-05/0.03075, allocations: 119 kB / 297.6 MB, free: 12.44 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001712/0.03093, allocations: 156.1 kB / 297.8 MB, free: 12.28 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002079/0.03113, allocations: 0.5623 MB / 298.3 MB, free: 11.7 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001069/0.03124, allocations: 61.94 kB / 298.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004293/0.03167, allocations: 0.6562 MB / 299.1 MB, free: 10.71 MB / 282.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: 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.0007602/0.03243, allocations: 0.8497 MB / 299.9 MB, free: 9.59 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.03244, allocations: 4 kB / 299.9 MB, free: 9.586 MB / 282.7 MB Notification: Performance of matching and sorting (n=98) (initialization): time 0.001154/0.03359, allocations: 0.6621 MB / 300.6 MB, free: 8.91 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.03362, allocations: 12 kB / 300.6 MB, free: 8.898 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.03364, allocations: 16.81 kB / 300.6 MB, free: 8.883 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000194/0.03383, allocations: 79.62 kB / 300.7 MB, free: 8.797 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004096/0.03424, allocations: 187.7 kB / 300.9 MB, free: 8.613 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00208/0.03632, allocations: 4.074 MB / 304.9 MB, free: 4.316 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.03662, allocations: 31.94 kB / 305 MB, free: 4.285 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.029e-05/0.03666, allocations: 39.98 kB / 305 MB, free: 4.246 MB / 282.7 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,3,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002308/0.03689, allocations: 220.3 kB / 305.2 MB, free: 4.02 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.03699, allocations: 83.53 kB / 305.3 MB, free: 3.938 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.75e-05/0.03708, allocations: 78.34 kB / 305.4 MB, free: 3.859 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.03708, allocations: 8.031 kB / 305.4 MB, free: 3.852 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.03709, allocations: 0 / 305.4 MB, free: 3.852 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.0371, allocations: 3.938 kB / 305.4 MB, free: 3.848 MB / 282.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001168/0.03826, allocations: 0.9385 MB / 306.3 MB, free: 2.855 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.03827, allocations: 0 / 306.3 MB, free: 2.855 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002149/0.03848, allocations: 59.91 kB / 306.4 MB, free: 2.797 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001383/0.03862, allocations: 59.42 kB / 306.4 MB, free: 2.73 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.705e-05/0.03864, allocations: 8 kB / 306.5 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002028/0.04067, allocations: 3.746 MB / 310.2 MB, free: 14.75 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.04067, allocations: 8.062 kB / 310.2 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005046/0.04117, allocations: 0.6026 MB / 310.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.511e-05/0.04124, allocations: 63.48 kB / 310.9 MB, free: 14.03 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.517e-05/0.04128, allocations: 16.06 kB / 310.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001868/0.04147, allocations: 11.98 kB / 310.9 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.446e-05/0.04153, allocations: 23.95 kB / 310.9 MB, free: 13.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.04154, allocations: 8 kB / 310.9 MB, free: 13.97 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002868/0.04183, allocations: 398.7 kB / 311.3 MB, free: 13.58 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.04183, allocations: 0 / 311.3 MB, free: 13.58 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007563/0.04259, allocations: 160 kB / 311.5 MB, free: 13.43 MB / 298.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 (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.0001223/0.04271, allocations: 107.1 kB / 311.6 MB, free: 13.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006538/0.04336, allocations: 0.6495 MB / 312.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.04336, allocations: 4 kB / 312.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003057/0.04367, allocations: 439.2 kB / 312.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00049/0.04416, allocations: 79.58 kB / 312.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002523/0.04668, allocations: 1.691 MB / 314.4 MB, free: 10.33 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.04683, allocations: 177.9 kB / 314.6 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002079/0.04704, allocations: 89.86 kB / 314.7 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004788/0.04752, allocations: 190.1 kB / 314.9 MB, free: 9.859 MB / 298.7 MB Notification: Performance of SimCode: time 7.71e-07/0.04752, allocations: 0 / 314.9 MB, free: 9.859 MB / 298.7 MB Notification: Performance of Templates: time 0.01216/0.05968, allocations: 5.832 MB / 320.7 MB, free: 4.176 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.GenerationOfFMUs.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8020645203068852]