Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.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.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance") translateModel(Modelica.Electrical.Analog.Examples.ParallelResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineCurrent.phi|inductor1.i|inductor2.i|sineCurrent.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001712/0.001712, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002269/0.002269, allocations: 204.9 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.43/2.43, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002407/0.002407, allocations: 59.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4265/0.4289, allocations: 50.53 MB / 409.9 MB, free: 1.762 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ParallelResonance): time 0.007532/0.4365, allocations: 2.916 MB / 412.9 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002428/0.439, allocations: 0.7011 MB / 413.6 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003332/0.4394, allocations: 11.94 kB / 413.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003651/0.4397, allocations: 63.36 kB / 413.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00042/0.4402, allocations: 95.19 kB / 413.7 MB, free: 13.96 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005114/0.4408, allocations: 79.89 kB / 413.8 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007779/0.4416, allocations: 382.8 kB / 414.2 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005089/0.4421, allocations: 172.4 kB / 414.3 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004648/0.4426, allocations: 147.5 kB / 414.5 MB, free: 13.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003859/0.443, allocations: 167.2 kB / 414.6 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.4431, allocations: 32 kB / 414.7 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001087/0.4432, allocations: 32 kB / 414.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001183/0.4434, allocations: 75.77 kB / 414.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002872/0.4437, allocations: 175.1 kB / 415 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006273/0.4443, allocations: 391.9 kB / 415.3 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.256e-06/0.4444, allocations: 4 kB / 415.3 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4444, allocations: 0 / 415.3 MB, free: 12.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.808e-05/0.4444, allocations: 0 / 415.3 MB, free: 12.33 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001669/0.4461, allocations: 0.6121 MB / 416 MB, free: 11.67 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.4462, allocations: 8.031 kB / 416 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.4463, allocations: 36.56 kB / 416 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006236/0.4469, allocations: 263.7 kB / 416.3 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.29e-05/0.447, allocations: 25.03 kB / 416.3 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001011/0.4471, allocations: 32.38 kB / 416.3 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009967/0.4481, allocations: 290.4 kB / 416.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.05e-05/0.4482, allocations: 0 / 416.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.188e-05/0.4483, allocations: 12 kB / 416.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.4483, allocations: 4 kB / 416.6 MB, free: 10.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008876/0.4492, allocations: 218.5 kB / 416.8 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003056/0.4523, allocations: 1.014 MB / 417.8 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005968/0.4529, allocations: 162.5 kB / 418 MB, free: 9.496 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005099/0.4534, allocations: 128.8 kB / 418.1 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.635e-05/0.4535, allocations: 7.938 kB / 418.1 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.239e-05/0.4535, allocations: 34.56 kB / 418.2 MB, free: 9.316 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 2.756e-06/0.4536, allocations: 0 / 418.2 MB, free: 9.316 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.001035/0.4546, allocations: 239.9 kB / 418.4 MB, free: 9.078 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.4547, allocations: 51.41 kB / 418.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000378/0.4551, allocations: 215.1 kB / 418.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.437e-05/0.4551, allocations: 29.7 kB / 418.7 MB, free: 8.762 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.4553, allocations: 188 kB / 418.9 MB, free: 8.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.781e-05/0.4554, allocations: 78.89 kB / 418.9 MB, free: 8.496 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001499/0.4556, allocations: 53.98 kB / 419 MB, free: 8.438 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.4558, allocations: 330.8 kB / 419.3 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003305/0.4562, allocations: 68.52 kB / 419.4 MB, free: 8.039 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004038/0.4566, allocations: 143.4 kB / 419.5 MB, free: 7.867 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007393/0.4573, allocations: 225.2 kB / 419.7 MB, free: 7.613 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.4574, allocations: 0 / 419.7 MB, free: 7.613 MB / 334.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0009831/0.4584, allocations: 277 kB / 420 MB, free: 7.336 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.4584, allocations: 18.69 kB / 420 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001004/0.4585, allocations: 0 / 420 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.4586, allocations: 7.938 kB / 420 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006307/0.4592, allocations: 71.89 kB / 420.1 MB, free: 7.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.657e-05/0.4593, allocations: 4 kB / 420.1 MB, free: 7.238 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.4596, allocations: 39.67 kB / 420.2 MB, free: 7.199 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.436e-05/0.4597, allocations: 8.219 kB / 420.2 MB, free: 7.191 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * 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.0002345/0.4599, allocations: 145.8 kB / 420.3 MB, free: 7.039 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.148e-05/0.46, allocations: 23.75 kB / 420.3 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007752/0.4608, allocations: 198.9 kB / 420.5 MB, free: 6.816 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/0.4608, allocations: 8 kB / 420.5 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.4609, allocations: 0 / 420.5 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.4609, allocations: 0 / 420.5 MB, free: 6.809 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.4624, allocations: 0.6013 MB / 421.1 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.4624, allocations: 4 kB / 421.1 MB, free: 6.141 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005983/0.463, allocations: 51.97 kB / 421.2 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.4631, allocations: 4 kB / 421.2 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.14e-05/0.4631, allocations: 0 / 421.2 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.4632, allocations: 7.938 kB / 421.2 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.4632, allocations: 4.062 kB / 421.2 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.4643, allocations: 375.5 kB / 421.6 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.4644, allocations: 100.8 kB / 421.7 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.496e-05/0.4645, allocations: 8 kB / 421.7 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003462/0.4648, allocations: 15.98 kB / 421.7 MB, free: 5.543 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.773e-05/0.4649, allocations: 23.91 kB / 421.7 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.602e-05/0.465, allocations: 4 kB / 421.7 MB, free: 5.516 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002429/0.4652, allocations: 152.7 kB / 421.9 MB, free: 5.367 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.4653, allocations: 0 / 421.9 MB, free: 5.367 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006996/0.466, allocations: 79.62 kB / 421.9 MB, free: 5.289 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (sineCurrent.phi,inductor1.i,capacitor1.v,cosineCurrent.phi,inductor2.i,capacitor2.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 (21): * Single equations (assignments): 21 * 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.0001908/0.4662, allocations: 107.2 kB / 422.1 MB, free: 5.172 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008093/0.467, allocations: 179.7 kB / 422.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.289e-06/0.467, allocations: 4 kB / 422.2 MB, free: 4.992 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003368/0.4674, allocations: 84.47 kB / 422.3 MB, free: 4.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006378/0.468, allocations: 32.61 kB / 422.3 MB, free: 4.879 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.4706, allocations: 0.8651 MB / 423.2 MB, free: 3.977 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005682/0.4712, allocations: 0.7675 MB / 424 MB, free: 3.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001236/0.4713, allocations: 23.44 kB / 424 MB, free: 3.156 MB / 334.1 MB Notification: Performance of SimCode: time 7.61e-07/0.4713, allocations: 0 / 424 MB, free: 3.156 MB / 334.1 MB Notification: Performance of Templates: time 0.06953/0.5409, allocations: 3.006 MB / 427 MB, free: 164 kB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ParallelResonance/ParallelResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ParallelResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches