Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001278/0.001278, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001268/0.001268, allocations: 206.4 kB / 18.58 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 59.94 kB / 307.1 MB, free: 0.5508 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09421/0.09563, allocations: 50.54 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.007942/0.1036, allocations: 5.387 MB / 363 MB, free: 8.594 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003555/0.1072, allocations: 1.52 MB / 364.5 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001496/0.1087, allocations: 23.88 kB / 364.5 MB, free: 7.047 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008439/0.1097, allocations: 217.8 kB / 364.7 MB, free: 6.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001388/0.1111, allocations: 205.9 kB / 364.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001407/0.1125, allocations: 419.3 kB / 365.3 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001786/0.1143, allocations: 1.115 MB / 366.5 MB, free: 5.098 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001001/0.1153, allocations: 480.3 kB / 366.9 MB, free: 4.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007388/0.1161, allocations: 406.2 kB / 367.3 MB, free: 4.211 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006292/0.1167, allocations: 429.6 kB / 367.7 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002332/0.117, allocations: 88 kB / 367.8 MB, free: 3.703 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003322/0.1173, allocations: 104 kB / 367.9 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002209/0.1176, allocations: 219 kB / 368.1 MB, free: 3.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005614/0.1181, allocations: 0.4893 MB / 368.6 MB, free: 2.895 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001228/0.1194, allocations: 1.129 MB / 369.8 MB, free: 1.762 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1194, allocations: 0 / 369.8 MB, free: 1.762 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1194, allocations: 0 / 369.8 MB, free: 1.762 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.879e-05/0.1195, allocations: 0 / 369.8 MB, free: 1.762 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: 252 * Number of variables: 252 Notification: Performance of Generate backend data structure: time 0.002007/0.1215, allocations: 1.32 MB / 371.1 MB, free: 396 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.1215, allocations: 8.031 kB / 371.1 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001463/0.1217, allocations: 152.2 kB / 371.2 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003431/0.122, allocations: 146.4 kB / 371.4 MB, free: 80 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1463/0.2683, allocations: 0.6127 MB / 372 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.152e-05/0.2684, allocations: 74.84 kB / 372.1 MB, free: 19.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001373/0.2686, allocations: 106.4 kB / 372.2 MB, free: 19.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001715/0.2703, allocations: 1.026 MB / 373.2 MB, free: 19.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.238e-05/0.2704, allocations: 8.172 kB / 373.2 MB, free: 19.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.563e-05/0.2704, allocations: 44.34 kB / 373.2 MB, free: 19.51 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.58e-05/0.2705, allocations: 25.81 kB / 373.3 MB, free: 19.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.2716, allocations: 0.5575 MB / 373.8 MB, free: 19.31 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004083/0.2757, allocations: 5.525 MB / 379.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005824/0.2763, allocations: 233.8 kB / 379.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003326/0.2767, allocations: 154.8 kB / 379.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002141/0.2769, allocations: 85.38 kB / 379.8 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.277, allocations: 41.53 kB / 379.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 2.445e-06/0.277, allocations: 0 / 379.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003763/0.2807, allocations: 1.733 MB / 381.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.2808, allocations: 82.55 kB / 381.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000734/0.2815, allocations: 0.6397 MB / 382.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.2816, allocations: 31.02 kB / 382.3 MB, free: 12.92 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003575/0.2819, allocations: 0.5957 MB / 382.9 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.609e-05/0.282, allocations: 151.3 kB / 383.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001689/0.2822, allocations: 135.3 kB / 383.2 MB, free: 12.26 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.2823, allocations: 391 kB / 383.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003413/0.2827, allocations: 156.2 kB / 383.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004513/0.2831, allocations: 498.3 kB / 384.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007255/0.2839, allocations: 0.6988 MB / 384.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.02e-06/0.2839, allocations: 3.594 kB / 384.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001013/0.2849, allocations: 0.7148 MB / 385.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.2849, allocations: 10.12 kB / 385.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.285, allocations: 13.17 kB / 385.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.673e-05/0.285, allocations: 17.16 kB / 385.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006121/0.2856, allocations: 198 kB / 385.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.597e-05/0.2857, allocations: 26.88 kB / 385.9 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003532/0.286, allocations: 37.91 kB / 386 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.735e-05/0.2861, allocations: 37.28 kB / 386 MB, free: 10.38 MB / 302.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.0002475/0.2863, allocations: 234.6 kB / 386.2 MB, free: 10.19 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.2865, allocations: 74.97 kB / 386.3 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.2866, allocations: 78.25 kB / 386.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.2866, allocations: 4.281 kB / 386.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.2866, allocations: 1.094 kB / 386.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.764e-06/0.2866, allocations: 6.109 kB / 386.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001976/0.2886, allocations: 1.323 MB / 387.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.2886, allocations: 3.359 kB / 387.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004672/0.2891, allocations: 104 kB / 387.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.031e-06/0.2891, allocations: 3.312 kB / 387.8 MB, free: 9.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.812e-05/0.2891, allocations: 18.86 kB / 387.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-06/0.2892, allocations: 3.375 kB / 387.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.2892, allocations: 2.734 kB / 387.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009248/0.2901, allocations: 0.694 MB / 388.5 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.044e-05/0.2902, allocations: 141.8 kB / 388.7 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.52e-05/0.2903, allocations: 10.08 kB / 388.7 MB, free: 8.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003198/0.2906, allocations: 32.2 kB / 388.7 MB, free: 8.746 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.787e-05/0.2907, allocations: 34.09 kB / 388.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.34e-05/0.2907, allocations: 13.98 kB / 388.8 MB, free: 8.734 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004514/0.2912, allocations: 426.2 kB / 389.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2912, allocations: 0 / 389.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006806/0.2919, allocations: 137 kB / 389.3 MB, free: 8.539 MB / 302.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.001038/0.2929, allocations: 1.256 MB / 390.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008128/0.2937, allocations: 449.3 kB / 391 MB, free: 7.422 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2937, allocations: 0 / 391 MB, free: 7.422 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002619/0.294, allocations: 157.6 kB / 391.2 MB, free: 7.375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005555/0.2946, allocations: 81.69 kB / 391.2 MB, free: 7.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006956/0.3015, allocations: 6.376 MB / 397.6 MB, free: 2.984 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.302, allocations: 1.008 MB / 398.6 MB, free: 2.211 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003223/0.3023, allocations: 93.55 kB / 398.7 MB, free: 2.164 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003636/0.3027, allocations: 396.1 kB / 399.1 MB, free: 1.824 MB / 302.1 MB Notification: Performance of SimCode: time 1.874e-06/0.3027, allocations: 0 / 399.1 MB, free: 1.824 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05312/0.3558, allocations: 11.42 MB / 410.5 MB, free: 8.523 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.763/8.119, allocations: 15.77 kB / 410.5 MB, free: 8.508 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ResonanceCircuits/ResonanceCircuits.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches