Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 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.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 109.4 kB / 17.73 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001609/0.001609, allocations: 188.1 kB / 18.66 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.688/1.688, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 43.94 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1658/0.1678, allocations: 46.62 MB / 375.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.3174/0.4853, allocations: 5.333 MB / 380.5 MB, free: 10.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004062/0.4894, allocations: 1.483 MB / 382 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00114/0.4906, allocations: 25.75 kB / 382 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006256/0.4913, allocations: 218.8 kB / 382.2 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009961/0.4923, allocations: 194.2 kB / 382.4 MB, free: 9.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00197/0.4943, allocations: 391.5 kB / 382.8 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003104/0.4974, allocations: 1.128 MB / 383.9 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001233/0.4987, allocations: 485.5 kB / 384.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00114/0.4998, allocations: 402.2 kB / 384.8 MB, free: 8.898 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006431/0.5005, allocations: 433.2 kB / 385.2 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001822/0.5007, allocations: 84.62 kB / 385.3 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003611/0.501, allocations: 92.2 kB / 385.4 MB, free: 8.652 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002349/0.5013, allocations: 209.8 kB / 385.6 MB, free: 8.508 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005981/0.5019, allocations: 0.5026 MB / 386.1 MB, free: 8.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002476/0.5044, allocations: 1.164 MB / 387.3 MB, free: 7.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.124e-05/0.5044, allocations: 0 / 387.3 MB, free: 7.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 5.45e-06/0.5044, allocations: 5.781 kB / 387.3 MB, free: 7.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.082e-05/0.5045, allocations: 0 / 387.3 MB, free: 7.699 MB / 318.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.003108/0.5076, allocations: 1.309 MB / 388.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.76e-05/0.5077, allocations: 13.64 kB / 388.6 MB, free: 6.816 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003396/0.508, allocations: 133.6 kB / 388.7 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001789/0.5098, allocations: 0.6515 MB / 389.4 MB, free: 6.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00011/0.51, allocations: 77.53 kB / 389.4 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002026/0.5102, allocations: 101.4 kB / 389.5 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002481/0.5127, allocations: 1.029 MB / 390.6 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.395e-05/0.5127, allocations: 7 kB / 390.6 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-05/0.5128, allocations: 42.84 kB / 390.6 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.402e-05/0.5129, allocations: 26.72 kB / 390.6 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001431/0.5143, allocations: 0.5518 MB / 391.2 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006727/0.5211, allocations: 5.492 MB / 396.7 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008604/0.522, allocations: 229.3 kB / 396.9 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004601/0.5225, allocations: 162.7 kB / 397.1 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002014/0.5227, allocations: 88.36 kB / 397.2 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.858e-05/0.5228, allocations: 44.56 kB / 397.2 MB, free: 472 kB / 318.1 MB Notification: Performance of pre-optimization done (n=28): time 2.815e-06/0.5228, allocations: 4 kB / 397.2 MB, free: 468 kB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.004924/0.5277, allocations: 1.701 MB / 398.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.339e-05/0.5278, allocations: 85.56 kB / 399 MB, free: 15.31 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001154/0.529, allocations: 0.6361 MB / 399.6 MB, free: 15.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.525e-05/0.5291, allocations: 36.36 kB / 399.7 MB, free: 14.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007181/0.5298, allocations: 0.6008 MB / 400.3 MB, free: 14.51 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.53, allocations: 147.4 kB / 400.4 MB, free: 14.4 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002826/0.5303, allocations: 133.2 kB / 400.5 MB, free: 14.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003298/0.5306, allocations: 385.8 kB / 400.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004133/0.531, allocations: 154.8 kB / 401.1 MB, free: 13.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006927/0.5317, allocations: 498.6 kB / 401.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001219/0.533, allocations: 0.705 MB / 402.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-06/0.533, allocations: 3.406 kB / 402.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00162/0.5346, allocations: 0.713 MB / 403 MB, free: 12.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.673e-05/0.5347, allocations: 11 kB / 403 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.593e-05/0.5347, allocations: 11.66 kB / 403 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.467e-05/0.5348, allocations: 17.25 kB / 403 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007458/0.5355, allocations: 199.1 kB / 403.2 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.384e-05/0.5356, allocations: 26.53 kB / 403.2 MB, free: 12.46 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004921/0.5361, allocations: 33.8 kB / 403.3 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.335e-05/0.5361, allocations: 40.78 kB / 403.3 MB, free: 12.45 MB / 334.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.000498/0.5366, allocations: 226.4 kB / 403.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001811/0.5368, allocations: 83 kB / 403.6 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001887/0.537, allocations: 77.61 kB / 403.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.537, allocations: 4.594 kB / 403.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.98e-05/0.5371, allocations: 3.938 kB / 403.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.267e-06/0.5371, allocations: 3.781 kB / 403.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002706/0.5398, allocations: 1.321 MB / 405 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/0.5398, allocations: 1.062 kB / 405 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005014/0.5403, allocations: 104 kB / 405.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.077e-06/0.5403, allocations: 3.344 kB / 405.1 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.628e-05/0.5404, allocations: 20.41 kB / 405.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.096e-05/0.5404, allocations: 9.734 kB / 405.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.5404, allocations: 1.156 kB / 405.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00129/0.5417, allocations: 0.6985 MB / 405.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001745/0.5419, allocations: 145.4 kB / 406 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.29e-05/0.542, allocations: 9.203 kB / 406 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003134/0.5423, allocations: 29.62 kB / 406 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.5424, allocations: 25.8 kB / 406 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.882e-05/0.5425, allocations: 11.31 kB / 406.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006744/0.5431, allocations: 425 kB / 406.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5431, allocations: 0 / 406.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008656/0.544, allocations: 136.8 kB / 406.6 MB, free: 10.59 MB / 334.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.0002098/0.5442, allocations: 119 kB / 406.7 MB, free: 10.49 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.5454, allocations: 445.2 kB / 407.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.5454, allocations: 0 / 407.2 MB, free: 10.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003745/0.5458, allocations: 148.8 kB / 407.3 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007112/0.5465, allocations: 73.12 kB / 407.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004101/0.5506, allocations: 1.642 MB / 409 MB, free: 9.184 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008257/0.5514, allocations: 0.998 MB / 410 MB, free: 8.355 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000342/0.5518, allocations: 99.94 kB / 410.1 MB, free: 8.301 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.552, allocations: 68.56 kB / 410.2 MB, free: 8.277 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.552, allocations: 0 / 410.2 MB, free: 8.277 MB / 334.1 MB Notification: Performance of Templates: time 0.01529/0.5673, allocations: 5.087 MB / 415.3 MB, free: 5.773 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches