Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits") translateModel(Modelica.Electrical.Analog.Examples.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001311/0.001311, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001341, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.421/1.421, allocations: 227.7 MB / 247.7 MB, free: 10.38 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 61.02 kB / 307.9 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09868/0.1006, allocations: 50.54 MB / 358.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007101/0.1078, allocations: 5.393 MB / 363.8 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00307/0.1109, allocations: 1.523 MB / 365.3 MB, free: 7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005252/0.1114, allocations: 27.81 kB / 365.4 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005071/0.112, allocations: 221.8 kB / 365.6 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006377/0.1126, allocations: 190 kB / 365.8 MB, free: 6.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009566/0.1136, allocations: 419.3 kB / 366.2 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001402/0.115, allocations: 1.115 MB / 367.3 MB, free: 5.035 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007449/0.1158, allocations: 480.2 kB / 367.8 MB, free: 4.547 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006532/0.1164, allocations: 406.2 kB / 368.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005215/0.117, allocations: 437.5 kB / 368.6 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001342/0.1171, allocations: 84 kB / 368.7 MB, free: 3.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000245/0.1174, allocations: 100 kB / 368.8 MB, free: 3.539 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002008/0.1176, allocations: 211.1 kB / 369 MB, free: 3.332 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004625/0.118, allocations: 0.4971 MB / 369.5 MB, free: 2.832 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001195/0.1192, allocations: 1.129 MB / 370.6 MB, free: 1.699 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1193, allocations: 0 / 370.6 MB, free: 1.699 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.1193, allocations: 4 kB / 370.6 MB, free: 1.695 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.1193, allocations: 0 / 370.6 MB, free: 1.695 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002126/0.1214, allocations: 1.313 MB / 371.9 MB, free: 336 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.1215, allocations: 8.031 kB / 371.9 MB, free: 328 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003924/0.1219, allocations: 150.4 kB / 372.1 MB, free: 176 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1319/0.2538, allocations: 0.6125 MB / 372.7 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.902e-05/0.2539, allocations: 73.77 kB / 372.8 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001451/0.2541, allocations: 105.5 kB / 372.9 MB, free: 19.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001667/0.2557, allocations: 1.028 MB / 373.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.415e-05/0.2558, allocations: 11 kB / 373.9 MB, free: 19.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.364e-05/0.2559, allocations: 43.81 kB / 373.9 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.156e-05/0.2559, allocations: 26.64 kB / 374 MB, free: 19.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001143/0.2571, allocations: 0.5556 MB / 374.5 MB, free: 19.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004069/0.2611, allocations: 5.522 MB / 380 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005074/0.2617, allocations: 234.1 kB / 380.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002765/0.262, allocations: 157.8 kB / 380.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001895/0.2622, allocations: 91.23 kB / 380.5 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.2622, allocations: 38.11 kB / 380.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.555e-06/0.2622, allocations: 0 / 380.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003478/0.2657, allocations: 1.73 MB / 382.3 MB, free: 13.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.597e-05/0.2657, allocations: 81.89 kB / 382.4 MB, free: 13.16 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006615/0.2664, allocations: 0.6401 MB / 383 MB, free: 12.88 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/0.2664, allocations: 30.92 kB / 383 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002798/0.2667, allocations: 0.596 MB / 383.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.844e-05/0.2668, allocations: 152.3 kB / 383.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.2669, allocations: 138 kB / 383.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.623e-05/0.267, allocations: 392.7 kB / 384.3 MB, free: 11.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000294/0.2673, allocations: 151.4 kB / 384.4 MB, free: 11.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003878/0.2677, allocations: 0.492 MB / 384.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007014/0.2684, allocations: 0.6883 MB / 385.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.2685, allocations: 8 kB / 385.6 MB, free: 10.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001104/0.2696, allocations: 0.7153 MB / 386.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.045e-05/0.2696, allocations: 10.06 kB / 386.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.2696, allocations: 11.5 kB / 386.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.872e-05/0.2697, allocations: 16.5 kB / 386.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005933/0.2703, allocations: 206.9 kB / 386.6 MB, free: 10.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.39e-05/0.2703, allocations: 23.55 kB / 386.6 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003434/0.2706, allocations: 33.64 kB / 386.6 MB, free: 10.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.419e-05/0.2707, allocations: 36.3 kB / 386.7 MB, free: 10.31 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (96): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002293/0.2709, allocations: 237.7 kB / 386.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.271, allocations: 75.95 kB / 387 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.2712, allocations: 77.81 kB / 387.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.411e-06/0.2712, allocations: 4.234 kB / 387.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.2712, allocations: 5.156 kB / 387.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/0.2712, allocations: 3.094 kB / 387.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001879/0.2731, allocations: 1.323 MB / 388.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.2731, allocations: 1.031 kB / 388.4 MB, free: 9.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004459/0.2735, allocations: 108.4 kB / 388.5 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.2736, allocations: 2.281 kB / 388.5 MB, free: 9.258 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.579e-05/0.2736, allocations: 10.36 kB / 388.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.2736, allocations: 3.406 kB / 388.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.2736, allocations: 3.281 kB / 388.5 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008637/0.2745, allocations: 0.6984 MB / 389.2 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.439e-05/0.2746, allocations: 141.2 kB / 389.4 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.21e-05/0.2746, allocations: 12.72 kB / 389.4 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002915/0.2749, allocations: 25.36 kB / 389.4 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.695e-05/0.275, allocations: 27.11 kB / 389.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.177e-05/0.275, allocations: 14.72 kB / 389.4 MB, free: 8.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004324/0.2755, allocations: 427.4 kB / 389.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.81e-07/0.2755, allocations: 0 / 389.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006485/0.2761, allocations: 140.2 kB / 390 MB, free: 8.465 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (inductor2.i,capacitor2.v,inductor1.i,capacitor1.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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001058/0.2763, allocations: 120.2 kB / 390.1 MB, free: 8.359 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008484/0.2771, allocations: 452.6 kB / 390.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2771, allocations: 1.75 kB / 390.6 MB, free: 8.215 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002657/0.2774, allocations: 154.9 kB / 390.7 MB, free: 8.172 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005134/0.2779, allocations: 81.05 kB / 390.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.2803, allocations: 1.715 MB / 392.5 MB, free: 7.086 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004984/0.2808, allocations: 1 MB / 393.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001637/0.281, allocations: 69.81 kB / 393.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.281, allocations: 0 / 393.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of Templates: time 0.01493/0.2959, allocations: 9.27 MB / 402.8 MB, free: 1.211 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches