Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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.ResonanceCircuits,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|inductor2.i",fileNamePrefix="Modelica_4.0.0_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.0.0_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.001449/0.001449, allocations: 113.7 kB / 17.07 MB, free: 5.973 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.001591/0.001591, allocations: 198.8 kB / 18 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.493/1.493, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000994/0.0009941, allocations: 51.92 kB / 351.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3714/0.3724, allocations: 49.43 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006404/0.3789, allocations: 5.377 MB / 406.1 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003493/0.3824, allocations: 1.438 MB / 407.6 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000588/0.383, allocations: 27.88 kB / 407.6 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005174/0.3835, allocations: 213.8 kB / 407.8 MB, free: 1.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006192/0.3843, allocations: 206 kB / 408 MB, free: 1.574 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008973/0.3852, allocations: 395.4 kB / 408.4 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001238/0.3864, allocations: 1.119 MB / 409.5 MB, free: 64 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006917/0.3871, allocations: 480.2 kB / 410 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004787/0.3876, allocations: 394.3 kB / 410.4 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004667/0.3881, allocations: 437.5 kB / 410.8 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.3882, allocations: 88 kB / 410.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001855/0.3884, allocations: 103.9 kB / 411 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.3886, allocations: 211.1 kB / 411.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004022/0.389, allocations: 0.4971 MB / 411.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001188/0.3902, allocations: 1.172 MB / 412.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.3902, allocations: 0 / 412.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3902, allocations: 0 / 412.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.937e-05/0.3902, allocations: 0 / 412.8 MB, free: 12.68 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002053/0.3923, allocations: 1.305 MB / 414.2 MB, free: 11.33 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.038e-05/0.3924, allocations: 15.89 kB / 414.2 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001871/0.3926, allocations: 126.4 kB / 414.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001074/0.3936, allocations: 0.6459 MB / 414.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.925e-05/0.3937, allocations: 81.88 kB / 415 MB, free: 10.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001398/0.3939, allocations: 99.91 kB / 415.1 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001824/0.3957, allocations: 1.031 MB / 416.1 MB, free: 9.168 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.733e-05/0.3958, allocations: 7.938 kB / 416.2 MB, free: 9.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.678e-05/0.3958, allocations: 44 kB / 416.2 MB, free: 9.117 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/0.3959, allocations: 24 kB / 416.2 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.397, allocations: 0.5617 MB / 416.8 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005839/0.4028, allocations: 5.485 MB / 422.3 MB, free: 2.758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005828/0.4034, allocations: 240.3 kB / 422.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003432/0.4038, allocations: 161.6 kB / 422.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001804/0.404, allocations: 81.11 kB / 422.7 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/0.404, allocations: 42.56 kB / 422.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 6.062e-06/0.404, allocations: 0 / 422.8 MB, free: 2.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.004238/0.4083, allocations: 1.707 MB / 424.5 MB, free: 396 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/0.4084, allocations: 85.05 kB / 424.6 MB, free: 292 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007621/0.4091, allocations: 0.6373 MB / 425.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.528e-05/0.4092, allocations: 33.7 kB / 425.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004442/0.4096, allocations: 0.6026 MB / 425.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.4098, allocations: 142 kB / 426 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001853/0.41, allocations: 146.4 kB / 426.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000192/0.4102, allocations: 382.8 kB / 426.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.4105, allocations: 149.9 kB / 426.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005968/0.4111, allocations: 0.4893 MB / 427.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001035/0.4121, allocations: 0.7037 MB / 427.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.4121, allocations: 0 / 427.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001254/0.4134, allocations: 0.7138 MB / 428.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.4134, allocations: 12 kB / 428.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/0.4135, allocations: 16.09 kB / 428.6 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.792e-05/0.4135, allocations: 16 kB / 428.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006708/0.4142, allocations: 195.7 kB / 428.8 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.626e-05/0.4142, allocations: 31.8 kB / 428.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003364/0.4146, allocations: 36 kB / 428.9 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.023e-05/0.4146, allocations: 39.98 kB / 428.9 MB, free: 11.59 MB / 350.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.000357/0.415, allocations: 225.6 kB / 429.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.4152, allocations: 71.06 kB / 429.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001408/0.4153, allocations: 82.53 kB / 429.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.4153, allocations: 4 kB / 429.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.369e-05/0.4153, allocations: 3.938 kB / 429.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.4154, allocations: 0 / 429.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002288/0.4176, allocations: 1.316 MB / 430.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.4177, allocations: 0 / 430.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004552/0.4181, allocations: 108 kB / 430.7 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.797e-06/0.4181, allocations: 4 kB / 430.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.002e-05/0.4182, allocations: 11.94 kB / 430.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.4182, allocations: 4 kB / 430.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/0.4182, allocations: 0 / 430.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009419/0.4191, allocations: 0.697 MB / 431.4 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001216/0.4193, allocations: 148 kB / 431.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.516e-05/0.4193, allocations: 8 kB / 431.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002798/0.4196, allocations: 35.95 kB / 431.6 MB, free: 8.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.4197, allocations: 31.91 kB / 431.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/0.4198, allocations: 8 kB / 431.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004843/0.4203, allocations: 427 kB / 432.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4203, allocations: 0 / 432.1 MB, free: 8.301 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006613/0.4209, allocations: 136 kB / 432.2 MB, free: 8.168 MB / 350.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.0001727/0.4211, allocations: 111.2 kB / 432.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007766/0.4219, allocations: 444.6 kB / 432.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4219, allocations: 0 / 432.7 MB, free: 7.617 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002664/0.4222, allocations: 153.4 kB / 432.9 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005756/0.4228, allocations: 87.53 kB / 433 MB, free: 7.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002695/0.4255, allocations: 1.649 MB / 434.6 MB, free: 5.684 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000586/0.4261, allocations: 1.004 MB / 435.6 MB, free: 4.652 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002425/0.4263, allocations: 86.02 kB / 435.7 MB, free: 4.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001538/0.4265, allocations: 71.41 kB / 435.8 MB, free: 4.496 MB / 350.1 MB Notification: Performance of SimCode: time 4.9e-07/0.4265, allocations: 4 kB / 435.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of Templates: time 0.01175/0.4382, allocations: 5.085 MB / 440.9 MB, free: 15.42 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches