Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.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.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") translateModel(Modelica.Electrical.Analog.Examples.SeriesResonance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|capacitor1.v|capacitor2.v|cosineVoltage.phi|inductor1.i|inductor2.i|sineVoltage.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00156/0.001561, allocations: 115.7 kB / 17.74 MB, free: 5.297 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.001851/0.001851, allocations: 189.6 kB / 18.67 MB, free: 4.375 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.325/1.325, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001094/0.001094, allocations: 43.94 kB / 352 MB, free: 3.242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2336/0.2348, allocations: 49.43 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.004056/0.2388, allocations: 2.898 MB / 404.3 MB, free: 5.965 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.2401, allocations: 0.6582 MB / 405 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002174/0.2403, allocations: 11.94 kB / 405 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002189/0.2406, allocations: 59.42 kB / 405 MB, free: 5.23 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002203/0.2408, allocations: 87.19 kB / 405.1 MB, free: 5.145 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002859/0.2411, allocations: 95.83 kB / 405.2 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004436/0.2415, allocations: 382.4 kB / 405.6 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002604/0.2418, allocations: 153.3 kB / 405.7 MB, free: 4.523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002343/0.2421, allocations: 143.5 kB / 405.9 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002052/0.2423, allocations: 151.3 kB / 406 MB, free: 4.234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.387e-05/0.2423, allocations: 32 kB / 406.1 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.592e-05/0.2424, allocations: 32 kB / 406.1 MB, free: 4.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.142e-05/0.2425, allocations: 75.73 kB / 406.2 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000153/0.2426, allocations: 171.1 kB / 406.3 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003785/0.243, allocations: 379.7 kB / 406.7 MB, free: 3.562 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.243, allocations: 0 / 406.7 MB, free: 3.562 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.243, allocations: 4 kB / 406.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.243, allocations: 4 kB / 406.7 MB, free: 3.555 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.0009848/0.244, allocations: 0.6043 MB / 407.3 MB, free: 2.902 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.2441, allocations: 12.03 kB / 407.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.907e-05/0.2442, allocations: 36.55 kB / 407.4 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003531/0.2445, allocations: 271.7 kB / 407.6 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.2446, allocations: 21.03 kB / 407.6 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.859e-05/0.2446, allocations: 32.38 kB / 407.7 MB, free: 2.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005502/0.2452, allocations: 274.4 kB / 407.9 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.2452, allocations: 0 / 407.9 MB, free: 2.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.2452, allocations: 12 kB / 408 MB, free: 2.211 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.2453, allocations: 8 kB / 408 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004511/0.2457, allocations: 206.4 kB / 408.2 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001461/0.2472, allocations: 0.9752 MB / 409.1 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003336/0.2475, allocations: 162.6 kB / 409.3 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001756/0.2477, allocations: 76.77 kB / 409.4 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.112e-05/0.2478, allocations: 4 kB / 409.4 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.2478, allocations: 38.56 kB / 409.4 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.633e-06/0.2478, allocations: 0 / 409.4 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005529/0.2483, allocations: 217.5 kB / 409.6 MB, free: 444 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.2484, allocations: 51.41 kB / 409.7 MB, free: 380 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001925/0.2486, allocations: 214.9 kB / 409.9 MB, free: 156 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.706e-05/0.2486, allocations: 25.7 kB / 409.9 MB, free: 124 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.2488, allocations: 192.2 kB / 410.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.411e-05/0.2488, allocations: 67 kB / 410.2 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.081e-05/0.2489, allocations: 49.7 kB / 410.2 MB, free: 15.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.249, allocations: 334.8 kB / 410.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001826/0.2492, allocations: 67.91 kB / 410.6 MB, free: 15.4 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/0.2494, allocations: 118 kB / 410.7 MB, free: 15.26 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003479/0.2498, allocations: 185.8 kB / 410.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2498, allocations: 0 / 410.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.000463/0.2502, allocations: 249 kB / 411.2 MB, free: 14.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/0.2503, allocations: 4 kB / 411.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.2503, allocations: 4 kB / 411.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.2503, allocations: 0 / 411.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002843/0.2506, allocations: 64.03 kB / 411.2 MB, free: 14.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.2506, allocations: 8 kB / 411.2 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001537/0.2508, allocations: 27.77 kB / 411.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.2508, allocations: 8 kB / 411.3 MB, free: 14.7 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (29): * Single equations (assignments): 29 * 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.0001234/0.2509, allocations: 149.6 kB / 411.4 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.752e-05/0.251, allocations: 27.72 kB / 411.4 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004082/0.2514, allocations: 183.2 kB / 411.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.2514, allocations: 4 kB / 411.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2514, allocations: 0 / 411.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.2514, allocations: 0 / 411.6 MB, free: 14.33 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000357/0.2518, allocations: 325.3 kB / 411.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.2518, allocations: 0 / 411.9 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002783/0.2521, allocations: 51.91 kB / 412 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.2521, allocations: 3.938 kB / 412 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/0.2521, allocations: 8 kB / 412 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2521, allocations: 0 / 412 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.103e-06/0.2521, allocations: 0 / 412 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005761/0.2527, allocations: 351 kB / 412.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.9e-05/0.2528, allocations: 100.9 kB / 412.4 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.231e-05/0.2528, allocations: 4 kB / 412.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.253, allocations: 15.98 kB / 412.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.533e-05/0.2531, allocations: 12.11 kB / 412.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.549e-05/0.2531, allocations: 12 kB / 412.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001341/0.2532, allocations: 148.6 kB / 412.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2532, allocations: 0 / 412.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003309/0.2536, allocations: 79.69 kB / 412.7 MB, free: 13.15 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (sineVoltage.phi,inductor1.i,capacitor1.v,cosineVoltage.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 (19): * Single equations (assignments): 19 * 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.0001158/0.2537, allocations: 103.2 kB / 412.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003963/0.2541, allocations: 166.9 kB / 413 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2541, allocations: 0 / 413 MB, free: 12.88 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001557/0.2543, allocations: 71.91 kB / 413 MB, free: 12.81 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.2546, allocations: 31.92 kB / 413.1 MB, free: 12.78 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.2559, allocations: 0.8363 MB / 413.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003131/0.2562, allocations: 0.775 MB / 414.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.971e-05/0.2563, allocations: 19.44 kB / 414.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2563, allocations: 3.938 kB / 414.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of Templates: time 0.004764/0.2611, allocations: 2.904 MB / 417.6 MB, free: 8.188 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches