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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ResonanceCircuits,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits",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.001165/0.001165, allocations: 108.2 kB / 16.92 MB, free: 6.145 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.00121/0.001211, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.427/1.427, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 47.17 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.12, allocations: 49.44 MB / 350.2 MB, free: 4.32 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ResonanceCircuits): time 0.006522/0.1266, allocations: 5.37 MB / 355.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003115/0.1298, allocations: 1.434 MB / 357 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005441/0.1303, allocations: 23.88 kB / 357 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005318/0.1309, allocations: 217.8 kB / 357.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005977/0.1315, allocations: 194 kB / 357.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008573/0.1324, allocations: 395.4 kB / 357.8 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001072/0.1335, allocations: 1.119 MB / 358.9 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006388/0.1341, allocations: 488.2 kB / 359.4 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005278/0.1346, allocations: 390.3 kB / 359.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004542/0.1351, allocations: 433.5 kB / 360.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001372/0.1353, allocations: 88 kB / 360.3 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.1354, allocations: 92 kB / 360.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001896/0.1356, allocations: 219 kB / 360.6 MB, free: 9.836 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004275/0.1361, allocations: 0.4932 MB / 361.1 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001066/0.1372, allocations: 1.117 MB / 362.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1372, allocations: 0 / 362.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1372, allocations: 0 / 362.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.427e-05/0.1372, allocations: 0 / 362.2 MB, free: 8.219 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.001881/0.1391, allocations: 1.317 MB / 363.5 MB, free: 6.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.1391, allocations: 12.03 kB / 363.5 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001752/0.1393, allocations: 148.2 kB / 363.7 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001652/0.1395, allocations: 122.5 kB / 363.8 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009056/0.1404, allocations: 0.6223 MB / 364.4 MB, free: 5.898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.76e-05/0.1405, allocations: 77.92 kB / 364.5 MB, free: 5.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.1406, allocations: 107.9 kB / 364.6 MB, free: 5.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/0.1422, allocations: 1.019 MB / 365.6 MB, free: 4.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.886e-05/0.1423, allocations: 11.94 kB / 365.6 MB, free: 4.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.852e-05/0.1423, allocations: 44 kB / 365.6 MB, free: 4.52 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.003e-05/0.1424, allocations: 28 kB / 365.7 MB, free: 4.492 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001092/0.1435, allocations: 0.5578 MB / 366.2 MB, free: 3.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1714/0.3149, allocations: 5.507 MB / 371.7 MB, free: 21.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006369/0.3156, allocations: 232.7 kB / 372 MB, free: 21.53 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003186/0.3159, allocations: 165.1 kB / 372.1 MB, free: 21.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001886/0.3161, allocations: 84.39 kB / 372.2 MB, free: 21.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.377e-05/0.3161, allocations: 36.81 kB / 372.2 MB, free: 21.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 3.026e-06/0.3161, allocations: 0 / 372.2 MB, free: 21.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003854/0.32, allocations: 1.715 MB / 374 MB, free: 20.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.32, allocations: 83.58 kB / 374 MB, free: 20.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007103/0.3208, allocations: 0.634 MB / 374.7 MB, free: 20.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.3208, allocations: 36.11 kB / 374.7 MB, free: 20.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002675/0.3211, allocations: 0.5985 MB / 375.3 MB, free: 19.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.947e-05/0.3212, allocations: 151.7 kB / 375.5 MB, free: 19.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001478/0.3213, allocations: 138.1 kB / 375.6 MB, free: 19.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.701e-05/0.3214, allocations: 388.4 kB / 376 MB, free: 19.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003147/0.3217, allocations: 151 kB / 376.1 MB, free: 19.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004583/0.3222, allocations: 498.9 kB / 376.6 MB, free: 18.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000776/0.323, allocations: 0.6958 MB / 377.3 MB, free: 18.33 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.323, allocations: 4.125 kB / 377.3 MB, free: 18.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001114/0.3241, allocations: 0.7151 MB / 378 MB, free: 18.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.771e-05/0.3242, allocations: 14.77 kB / 378 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.3242, allocations: 11.88 kB / 378.1 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.651e-05/0.3242, allocations: 20.55 kB / 378.1 MB, free: 18.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000673/0.3249, allocations: 196.7 kB / 378.3 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.29e-05/0.3249, allocations: 22.41 kB / 378.3 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.3253, allocations: 33.08 kB / 378.3 MB, free: 17.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.716e-05/0.3254, allocations: 40.36 kB / 378.4 MB, free: 17.98 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.0002807/0.3257, allocations: 235 kB / 378.6 MB, free: 17.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001323/0.3258, allocations: 73.91 kB / 378.7 MB, free: 17.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000137/0.3259, allocations: 79.7 kB / 378.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.326, allocations: 4.312 kB / 378.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.326, allocations: 3.25 kB / 378.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.326, allocations: 7.625 kB / 378.8 MB, free: 17.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002326/0.3283, allocations: 1.328 MB / 380.1 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.3283, allocations: 1.375 kB / 380.1 MB, free: 16.95 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005043/0.3289, allocations: 103.2 kB / 380.2 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.624e-06/0.3289, allocations: 3.219 kB / 380.2 MB, free: 16.94 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/0.3289, allocations: 14.19 kB / 380.2 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.922e-06/0.3289, allocations: 4.484 kB / 380.2 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/0.3289, allocations: 6.25 kB / 380.2 MB, free: 16.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.33, allocations: 0.7021 MB / 380.9 MB, free: 16.48 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.3301, allocations: 137.6 kB / 381 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.767e-05/0.3302, allocations: 9.047 kB / 381.1 MB, free: 16.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002974/0.3305, allocations: 24.84 kB / 381.1 MB, free: 16.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001038/0.3306, allocations: 35.36 kB / 381.1 MB, free: 16.33 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.038e-05/0.3307, allocations: 10.78 kB / 381.1 MB, free: 16.33 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007014/0.3314, allocations: 424.6 kB / 381.5 MB, free: 16.15 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.71e-07/0.3314, allocations: 0 / 381.5 MB, free: 16.15 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008573/0.3323, allocations: 137.1 kB / 381.7 MB, free: 16.13 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.00139/0.3337, allocations: 1.253 MB / 382.9 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009738/0.3346, allocations: 446.5 kB / 383.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3347, allocations: 4.984 kB / 383.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003084/0.335, allocations: 161.2 kB / 383.5 MB, free: 14.97 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005698/0.3355, allocations: 83.09 kB / 383.6 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008546/0.3441, allocations: 6.346 MB / 390 MB, free: 10.62 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005026/0.3446, allocations: 1.004 MB / 391 MB, free: 9.906 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003267/0.345, allocations: 88.72 kB / 391 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000428/0.3454, allocations: 394.6 kB / 391.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of SimCode: time 1.383e-06/0.3454, allocations: 0 / 391.4 MB, free: 9.586 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03268/0.3781, allocations: 11.38 MB / 402.8 MB, free: 2.172 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.678/8.056, allocations: 3.859 kB / 402.8 MB, free: 2.168 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ResonanceCircuits.fmu > 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/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_4.0.0_Modelica.Electrical.Analog.Examples.ResonanceCircuits.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches