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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SeriesResonance,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_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.001982/0.001982, allocations: 105.2 kB / 17.06 MB, free: 5.785 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.002922/0.002922, allocations: 198.9 kB / 18 MB, free: 4.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.152/3.152, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 43.94 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8323/0.8341, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SeriesResonance): time 0.01211/0.8463, allocations: 2.883 MB / 403.1 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00258/0.849, allocations: 0.6699 MB / 403.8 MB, free: 5.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003682/0.8494, allocations: 8 kB / 403.8 MB, free: 5.242 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003967/0.8499, allocations: 63.38 kB / 403.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003097/0.8502, allocations: 83.19 kB / 403.9 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005183/0.8508, allocations: 87.89 kB / 404 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007162/0.8515, allocations: 382.3 kB / 404.4 MB, free: 4.637 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004725/0.852, allocations: 161.3 kB / 404.6 MB, free: 4.477 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004173/0.8524, allocations: 139.5 kB / 404.7 MB, free: 4.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003621/0.8528, allocations: 159.3 kB / 404.9 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.567e-05/0.8529, allocations: 36 kB / 404.9 MB, free: 4.148 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.685e-05/0.853, allocations: 32 kB / 404.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.856e-05/0.8531, allocations: 67.77 kB / 405 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002624/0.8534, allocations: 167.2 kB / 405.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006677/0.8541, allocations: 392.2 kB / 405.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.604e-06/0.8541, allocations: 0 / 405.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.8541, allocations: 0 / 405.5 MB, free: 3.504 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.8542, allocations: 0 / 405.5 MB, free: 3.504 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.001516/0.8557, allocations: 0.6082 MB / 406.1 MB, free: 2.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.682e-05/0.8558, allocations: 8.031 kB / 406.1 MB, free: 2.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001296/0.8559, allocations: 70.72 kB / 406.2 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001002/0.856, allocations: 32.56 kB / 406.2 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006323/0.8567, allocations: 263.7 kB / 406.5 MB, free: 2.434 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.807e-05/0.8567, allocations: 25.03 kB / 406.5 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001087/0.8568, allocations: 32.38 kB / 406.6 MB, free: 2.379 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.8579, allocations: 282.2 kB / 406.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/0.8579, allocations: 0 / 406.8 MB, free: 2.094 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.702e-05/0.858, allocations: 11.98 kB / 406.8 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/0.858, allocations: 8 kB / 406.9 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007125/0.8588, allocations: 202.5 kB / 407.1 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.8613, allocations: 0.9713 MB / 408 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005544/0.8619, allocations: 166.5 kB / 408.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002937/0.8622, allocations: 76.81 kB / 408.3 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.376e-05/0.8623, allocations: 7.984 kB / 408.3 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.8623, allocations: 34.56 kB / 408.3 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 5.26e-06/0.8623, allocations: 0 / 408.3 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009533/0.8633, allocations: 220.1 kB / 408.5 MB, free: 316 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.178e-05/0.8634, allocations: 51.41 kB / 408.6 MB, free: 252 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003836/0.8638, allocations: 210.9 kB / 408.8 MB, free: 32 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.906e-05/0.8639, allocations: 29.78 kB / 408.8 MB, free: 15.99 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002059/0.8641, allocations: 196 kB / 409 MB, free: 15.79 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.8642, allocations: 63.09 kB / 409.1 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.8644, allocations: 49.7 kB / 409.1 MB, free: 15.68 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002444/0.8647, allocations: 334.8 kB / 409.4 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002826/0.8649, allocations: 63.95 kB / 409.5 MB, free: 15.28 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.8653, allocations: 109.9 kB / 409.6 MB, free: 15.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005915/0.8659, allocations: 193.8 kB / 409.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.8659, allocations: 3.938 kB / 409.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008074/0.8667, allocations: 245.1 kB / 410 MB, free: 14.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.8668, allocations: 7.938 kB / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.8668, allocations: 7.984 kB / 410.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.434e-05/0.8669, allocations: 4 kB / 410.1 MB, free: 14.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005022/0.8674, allocations: 59.97 kB / 410.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.8674, allocations: 3.938 kB / 410.1 MB, free: 14.61 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002648/0.8677, allocations: 27.95 kB / 410.1 MB, free: 14.58 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.902e-05/0.8677, allocations: 8 kB / 410.2 MB, free: 14.57 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.0002554/0.868, allocations: 145.7 kB / 410.3 MB, free: 14.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.344e-05/0.8681, allocations: 23.72 kB / 410.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007631/0.8689, allocations: 190.5 kB / 410.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.8689, allocations: 0 / 410.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.8689, allocations: 4 kB / 410.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/0.8689, allocations: 7.984 kB / 410.5 MB, free: 14.2 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006821/0.8696, allocations: 313.3 kB / 410.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.8696, allocations: 0 / 410.8 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004879/0.8701, allocations: 55.91 kB / 410.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.8702, allocations: 3.938 kB / 410.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.102e-05/0.8702, allocations: 15.92 kB / 410.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.8702, allocations: 0 / 410.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.8702, allocations: 0 / 410.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001054/0.8713, allocations: 355 kB / 411.2 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001396/0.8715, allocations: 88.92 kB / 411.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.41e-05/0.8715, allocations: 8.062 kB / 411.3 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002784/0.8718, allocations: 15.98 kB / 411.4 MB, free: 13.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.854e-05/0.8719, allocations: 15.92 kB / 411.4 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-05/0.872, allocations: 11.98 kB / 411.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002547/0.8722, allocations: 148.6 kB / 411.5 MB, free: 13.1 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.8723, allocations: 0 / 411.5 MB, free: 13.1 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006639/0.8729, allocations: 75.69 kB / 411.6 MB, free: 13.03 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.001632/0.8746, allocations: 0.8939 MB / 412.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007174/0.8753, allocations: 159.9 kB / 412.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.8754, allocations: 0 / 412.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002663/0.8756, allocations: 71.91 kB / 412.7 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006555/0.8763, allocations: 28.89 kB / 412.7 MB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006885/0.8832, allocations: 2.694 MB / 415.4 MB, free: 9.047 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007048/0.884, allocations: 0.7671 MB / 416.2 MB, free: 8.254 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001666/0.8842, allocations: 25.89 kB / 416.2 MB, free: 8.23 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002289/0.8844, allocations: 91.41 kB / 416.3 MB, free: 8.141 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.8844, allocations: 4 kB / 416.3 MB, free: 8.137 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1844/1.069, allocations: 4.572 MB / 420.9 MB, free: 3.676 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.54/20.61, allocations: 15.45 kB / 420.9 MB, free: 3.664 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SeriesResonance_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SeriesResonance.fmu > 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