Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.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: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 108.3 kB / 16.51 MB, free: 6.707 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.001326/0.001326, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.316/1.316, allocations: 222.9 MB / 241.1 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001628/0.001628, allocations: 45.86 kB / 300.1 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1224, allocations: 49.45 MB / 349.5 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance): time 0.004988/0.1274, allocations: 3.698 MB / 353.2 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002722/0.1301, allocations: 1.433 MB / 354.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003059/0.1304, allocations: 8 kB / 354.7 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001919/0.1324, allocations: 0.7029 MB / 355.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001519/0.1339, allocations: 0.4976 MB / 355.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001024/0.135, allocations: 409.8 kB / 356.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006776/0.1357, allocations: 438 kB / 356.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007714/0.1364, allocations: 352.9 kB / 357 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000421/0.1369, allocations: 199.2 kB / 357.2 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004436/0.1373, allocations: 258.9 kB / 357.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.931e-05/0.1374, allocations: 28 kB / 357.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005923/0.138, allocations: 199.8 kB / 357.7 MB, free: 12.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.1382, allocations: 95.61 kB / 357.8 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000294/0.1385, allocations: 218.9 kB / 358 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009461/0.1394, allocations: 0.6619 MB / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.1394, allocations: 0 / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1395, allocations: 0 / 358.7 MB, free: 11.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.7e-05/0.1395, allocations: 0 / 358.7 MB, free: 11.54 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: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.002573/0.1421, allocations: 0.9092 MB / 359.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.946e-05/0.1421, allocations: 12.03 kB / 359.6 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001525/0.1423, allocations: 96 kB / 359.7 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003724/0.146, allocations: 491.9 kB / 360.2 MB, free: 9.98 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004504/0.1465, allocations: 306.1 kB / 360.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.436e-05/0.1465, allocations: 41.69 kB / 360.5 MB, free: 9.605 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.806e-05/0.1467, allocations: 64.28 kB / 360.6 MB, free: 9.543 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.1477, allocations: 0.5179 MB / 361.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.11e-05/0.1477, allocations: 0 / 361.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.382e-05/0.1478, allocations: 20 kB / 361.1 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.256e-05/0.1478, allocations: 12 kB / 361.1 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.149, allocations: 0.5673 MB / 361.7 MB, free: 8.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002974/0.152, allocations: 1.888 MB / 363.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002251/0.1543, allocations: 2.188 MB / 365.8 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003745/0.1547, allocations: 214.1 kB / 366 MB, free: 3.625 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000158/0.1548, allocations: 93.47 kB / 366.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.1549, allocations: 35 kB / 366.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.726e-06/0.1549, allocations: 0 / 366.1 MB, free: 3.469 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.002113/0.157, allocations: 0.7894 MB / 366.9 MB, free: 2.652 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.051e-05/0.1571, allocations: 59.84 kB / 366.9 MB, free: 2.582 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002153/0.1573, allocations: 186.3 kB / 367.1 MB, free: 2.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.043e-05/0.1573, allocations: 33.7 kB / 367.2 MB, free: 2.352 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001588/0.1575, allocations: 224.4 kB / 367.4 MB, free: 2.129 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/0.1577, allocations: 157.7 kB / 367.5 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00015/0.1578, allocations: 86.17 kB / 367.6 MB, free: 1.883 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.158, allocations: 338.8 kB / 367.9 MB, free: 1.543 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003062/0.1583, allocations: 145.1 kB / 368.1 MB, free: 1.402 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003516/0.1586, allocations: 228.8 kB / 368.3 MB, free: 1.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006447/0.1593, allocations: 403.4 kB / 368.7 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.1593, allocations: 0 / 368.7 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001164/0.1605, allocations: 0.5279 MB / 369.2 MB, free: 208 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.1605, allocations: 7.938 kB / 369.2 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.1605, allocations: 7.938 kB / 369.2 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003822/0.1609, allocations: 84.8 kB / 369.3 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003827/0.1613, allocations: 95.89 kB / 369.4 MB, free: 8 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1596/0.3209, allocations: 1.843 MB / 371.3 MB, free: 24.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003255/0.3212, allocations: 47.09 kB / 371.3 MB, free: 24.14 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.3213, allocations: 17.25 kB / 371.3 MB, free: 24.14 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (50): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00018/0.3214, allocations: 167.5 kB / 371.5 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.148e-05/0.3215, allocations: 29.38 kB / 371.5 MB, free: 24.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001144/0.3227, allocations: 0.5522 MB / 372.1 MB, free: 23.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.3227, allocations: 8.219 kB / 372.1 MB, free: 23.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3227, allocations: 7.641 kB / 372.1 MB, free: 23.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.3227, allocations: 2.062 kB / 372.1 MB, free: 23.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001656/0.3244, allocations: 1.13 MB / 373.2 MB, free: 23.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-06/0.3244, allocations: 1.375 kB / 373.2 MB, free: 23.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003335/0.3247, allocations: 76.91 kB / 373.3 MB, free: 23.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002919/0.325, allocations: 85.86 kB / 373.4 MB, free: 23.39 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.001e-05/0.3251, allocations: 13.33 kB / 373.4 MB, free: 23.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001518/0.3266, allocations: 1.835 MB / 375.2 MB, free: 21.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.3266, allocations: 5.5 kB / 375.2 MB, free: 21.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/0.3278, allocations: 0.7897 MB / 376 MB, free: 21.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.699e-05/0.3279, allocations: 110.7 kB / 376.1 MB, free: 21.24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.075e-05/0.3279, allocations: 12.02 kB / 376.1 MB, free: 21.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000236/0.3282, allocations: 20.53 kB / 376.2 MB, free: 21.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.085e-05/0.3283, allocations: 38.17 kB / 376.2 MB, free: 21.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.633e-05/0.3283, allocations: 10.77 kB / 376.2 MB, free: 21.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.423e-05/0.3284, allocations: 139.5 kB / 376.3 MB, free: 21.13 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3284, allocations: 1.062 kB / 376.3 MB, free: 21.13 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005672/0.329, allocations: 147.5 kB / 376.5 MB, free: 21.09 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageSource.pin_p.reference.gamma) * 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 (42): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001504/0.3305, allocations: 1.374 MB / 377.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009944/0.3315, allocations: 0.5623 MB / 378.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3315, allocations: 0 / 378.4 MB, free: 19.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005334/0.3321, allocations: 386.2 kB / 378.8 MB, free: 19.64 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004015/0.3325, allocations: 27.67 kB / 378.8 MB, free: 19.63 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00421/0.3367, allocations: 3.595 MB / 382.4 MB, free: 17.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003197/0.337, allocations: 0.8107 MB / 383.2 MB, free: 16.53 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002264/0.3373, allocations: 42.06 kB / 383.3 MB, free: 16.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000198/0.3375, allocations: 137.8 kB / 383.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3375, allocations: 1.125 kB / 383.4 MB, free: 16.41 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.3566, allocations: 7.143 MB / 390.6 MB, free: 14.68 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001401/0.3568, allocations: 244.5 kB / 390.8 MB, free: 14.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.907/2.264, allocations: 2.812 kB / 390.8 MB, free: 14.42 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_SinglePhase_Examples_SeriesResonance.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/SinglePhase/Examples/SeriesResonance/SeriesResonance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.SinglePhase.Examples.SeriesResonance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches