Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.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.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001837/0.001836, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002833/0.002834, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 55.94 kB / 307 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1202/0.1217, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003746/0.1254, allocations: 1.904 MB / 359.5 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002149/0.1276, allocations: 1.25 MB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/0.1278, allocations: 4 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001366/0.1292, allocations: 0.4988 MB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003091/0.1295, allocations: 203.4 kB / 361.4 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004975/0.1301, allocations: 167.3 kB / 361.6 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004276/0.1305, allocations: 235.1 kB / 361.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001092/0.1306, allocations: 25.67 kB / 361.8 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003632/0.131, allocations: 123.6 kB / 362 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003361/0.1313, allocations: 211.5 kB / 362.2 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.752e-05/0.1314, allocations: 8 kB / 362.2 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002039/0.1316, allocations: 59.97 kB / 362.2 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002363/0.1318, allocations: 267.2 kB / 362.5 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002814/0.1321, allocations: 277.9 kB / 362.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007981/0.1329, allocations: 0.755 MB / 363.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1329, allocations: 0 / 363.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.133, allocations: 0 / 363.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.065e-05/0.133, allocations: 4 kB / 363.5 MB, free: 7.988 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.002969/0.136, allocations: 1.177 MB / 364.7 MB, free: 6.758 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.136, allocations: 8.031 kB / 364.7 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.031e-05/0.1361, allocations: 38.75 kB / 364.8 MB, free: 6.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002098/0.1363, allocations: 91.8 kB / 364.8 MB, free: 6.613 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001056/0.1373, allocations: 0.7392 MB / 365.6 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.1374, allocations: 384 / 365.6 MB, free: 5.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.999e-05/0.1374, allocations: 12.31 kB / 365.6 MB, free: 5.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002798/0.1377, allocations: 117.7 kB / 365.7 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.1377, allocations: 0 / 365.7 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.1377, allocations: 4 kB / 365.7 MB, free: 5.684 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.1377, allocations: 3.938 kB / 365.7 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003529/0.1381, allocations: 147.8 kB / 365.9 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.1392, allocations: 0.8142 MB / 366.7 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002089/0.1394, allocations: 82.52 kB / 366.8 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.1396, allocations: 76.89 kB / 366.8 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.644e-05/0.1396, allocations: 0 / 366.8 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.1397, allocations: 34.56 kB / 366.9 MB, free: 4.461 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 2.805e-06/0.1397, allocations: 0 / 366.9 MB, free: 4.461 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008144/0.1405, allocations: 328.4 kB / 367.2 MB, free: 4.133 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.495e-05/0.1405, allocations: 51.41 kB / 367.2 MB, free: 4.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001673/0.1422, allocations: 1.405 MB / 368.6 MB, free: 2.645 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.1423, allocations: 29.7 kB / 368.7 MB, free: 2.609 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002944/0.1426, allocations: 384.4 kB / 369 MB, free: 2.23 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.664e-05/0.1426, allocations: 7.812 kB / 369.1 MB, free: 2.223 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.648e-05/0.1427, allocations: 17.72 kB / 369.1 MB, free: 2.199 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.1428, allocations: 317.9 kB / 369.4 MB, free: 1.883 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/0.1429, allocations: 67.95 kB / 369.5 MB, free: 1.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001789/0.1431, allocations: 86.52 kB / 369.5 MB, free: 1.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003421/0.1435, allocations: 158.4 kB / 369.7 MB, free: 1.559 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1435, allocations: 0 / 369.7 MB, free: 1.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005785/0.1441, allocations: 264.5 kB / 369.9 MB, free: 1.293 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.508e-05/0.1441, allocations: 4 kB / 370 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.1441, allocations: 8 kB / 370 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.1441, allocations: 0 / 370 MB, free: 1.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001872/0.1443, allocations: 20.08 kB / 370 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.454e-06/0.1443, allocations: 0 / 370 MB, free: 1.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002061/0.1446, allocations: 11.92 kB / 370 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.1446, allocations: 4 kB / 370 MB, free: 1.246 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (3): * Single equations (assignments): 3 * 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.0003272/0.1449, allocations: 342.7 kB / 370.3 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001793/0.1451, allocations: 90.86 kB / 370.4 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005968/0.1457, allocations: 277.6 kB / 370.7 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.1457, allocations: 0 / 370.7 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1457, allocations: 0 / 370.7 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1457, allocations: 0 / 370.7 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1753/0.321, allocations: 0.5207 MB / 371.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.878e-06/0.3211, allocations: 3.906 kB / 371.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001183/0.3212, allocations: 11.86 kB / 371.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.3212, allocations: 0 / 371.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.3212, allocations: 5.5 kB / 371.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3213, allocations: 3.125 kB / 371.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3213, allocations: 0 / 371.2 MB, free: 20.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008089/0.3221, allocations: 316.5 kB / 371.5 MB, free: 20.21 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003297/0.3224, allocations: 229 kB / 371.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.405e-05/0.3225, allocations: 1.203 kB / 371.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002134/0.3227, allocations: 6.531 kB / 371.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.054e-05/0.3228, allocations: 5 kB / 371.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/0.3228, allocations: 2.188 kB / 371.8 MB, free: 20.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001573/0.3244, allocations: 1.015 MB / 372.8 MB, free: 19.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3244, allocations: 1.688 kB / 372.8 MB, free: 19.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003806/0.3248, allocations: 63.09 kB / 372.9 MB, free: 19.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0008322/0.3256, allocations: 0.8647 MB / 373.7 MB, free: 19.28 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004278/0.326, allocations: 123.7 kB / 373.8 MB, free: 19.28 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.3261, allocations: 3.906 kB / 373.8 MB, free: 19.28 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.3262, allocations: 54.78 kB / 373.9 MB, free: 19.28 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005845/0.3268, allocations: 105.6 kB / 374 MB, free: 19.28 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01389/0.3407, allocations: 9.382 MB / 383.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005647/0.3413, allocations: 0.9998 MB / 384.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0008341/0.3422, allocations: 477.2 kB / 384.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002757/0.3425, allocations: 249.7 kB / 385.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of SimCode: time 1.884e-06/0.3425, allocations: 0 / 385.1 MB, free: 14.31 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03561/0.3781, allocations: 15.84 MB / 400.9 MB, free: 3.254 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.793/8.171, allocations: 4 kB / 400.9 MB, free: 3.25 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_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_Batteries_Examples_ShowImpedance.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches