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.001346/0.001346, allocations: 103.9 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002095/0.002095, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001403/0.001403, allocations: 65.66 kB / 306.6 MB, free: 0.8672 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1118, allocations: 50.53 MB / 357.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.00393/0.1157, allocations: 1.963 MB / 359 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001944/0.1177, allocations: 1.223 MB / 360.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.1179, allocations: 0 / 360.3 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001253/0.1192, allocations: 0.5028 MB / 360.8 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002951/0.1195, allocations: 191.5 kB / 361 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004841/0.12, allocations: 155.5 kB / 361.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004774/0.1205, allocations: 227.1 kB / 361.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001245/0.1206, allocations: 25.66 kB / 361.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003399/0.121, allocations: 131.6 kB / 361.5 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003369/0.1213, allocations: 211.5 kB / 361.7 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.387e-05/0.1214, allocations: 11.94 kB / 361.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002004/0.1216, allocations: 67.89 kB / 361.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002289/0.1218, allocations: 263.3 kB / 362 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002682/0.1221, allocations: 277.9 kB / 362.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000814/0.1229, allocations: 0.759 MB / 363.1 MB, free: 8.332 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1229, allocations: 0 / 363.1 MB, free: 8.332 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.123, allocations: 0 / 363.1 MB, free: 8.332 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.034e-05/0.123, allocations: 3.938 kB / 363.1 MB, free: 8.328 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.002835/0.1258, allocations: 1.177 MB / 364.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.1259, allocations: 8.031 kB / 364.2 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.623e-05/0.1259, allocations: 30.75 kB / 364.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002154/0.1261, allocations: 91.8 kB / 364.4 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001012/0.1272, allocations: 0.747 MB / 365.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.1272, allocations: 384 / 365.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/0.1272, allocations: 384 / 365.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002923/0.1275, allocations: 121.7 kB / 365.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-06/0.1275, allocations: 3.938 kB / 365.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.1276, allocations: 0 / 365.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.1276, allocations: 0 / 365.2 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003547/0.1279, allocations: 151.8 kB / 365.4 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.129, allocations: 0.8142 MB / 366.2 MB, free: 5.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.1293, allocations: 86.52 kB / 366.3 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000174/0.1294, allocations: 76.89 kB / 366.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.749e-05/0.1295, allocations: 0 / 366.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.1295, allocations: 34.56 kB / 366.4 MB, free: 4.805 MB / 302.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1295, allocations: 0 / 366.4 MB, free: 4.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008556/0.1304, allocations: 324.4 kB / 366.7 MB, free: 4.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.727e-05/0.1304, allocations: 51.41 kB / 366.8 MB, free: 4.418 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001801/0.1322, allocations: 1.405 MB / 368.2 MB, free: 2.992 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.407e-05/0.1323, allocations: 29.7 kB / 368.2 MB, free: 2.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000308/0.1326, allocations: 388.4 kB / 368.6 MB, free: 2.574 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.1326, allocations: 11.81 kB / 368.6 MB, free: 2.562 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/0.1327, allocations: 17.72 kB / 368.6 MB, free: 2.539 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.1328, allocations: 313.9 kB / 368.9 MB, free: 2.227 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.133, allocations: 67.95 kB / 369 MB, free: 2.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.1332, allocations: 86.69 kB / 369.1 MB, free: 2.066 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000348/0.1335, allocations: 162.4 kB / 369.2 MB, free: 1.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.1335, allocations: 0 / 369.2 MB, free: 1.898 MB / 302.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006093/0.1342, allocations: 268.5 kB / 369.5 MB, free: 1.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.1342, allocations: 4 kB / 369.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1342, allocations: 0 / 369.5 MB, free: 1.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.702e-05/0.1342, allocations: 4 kB / 369.5 MB, free: 1.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.1344, allocations: 11.98 kB / 369.5 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.1344, allocations: 7.938 kB / 369.5 MB, free: 1.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002253/0.1347, allocations: 15.98 kB / 369.5 MB, free: 1.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.1347, allocations: 0 / 369.5 MB, free: 1.586 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.0003373/0.135, allocations: 350.6 kB / 369.9 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002005/0.1353, allocations: 94.86 kB / 370 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006364/0.1359, allocations: 269.3 kB / 370.2 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.516e-06/0.1359, allocations: 0 / 370.2 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.1359, allocations: 7.938 kB / 370.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.626e-06/0.1359, allocations: 0 / 370.2 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005392/0.1365, allocations: 0.5143 MB / 370.7 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.1365, allocations: 3.984 kB / 370.7 MB, free: 300 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.469e-05/0.1366, allocations: 11.98 kB / 370.8 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.1366, allocations: 0 / 370.8 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.1366, allocations: 0 / 370.8 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.1366, allocations: 0 / 370.8 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.1366, allocations: 0 / 370.8 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1592/0.2959, allocations: 320 kB / 371.1 MB, free: 20.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005032/0.2964, allocations: 223.6 kB / 371.3 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001751/0.2966, allocations: 0.5625 kB / 371.3 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003012/0.2969, allocations: 6.984 kB / 371.3 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.505e-05/0.297, allocations: 7.297 kB / 371.3 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.297, allocations: 3.016 kB / 371.3 MB, free: 20.5 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001854/0.2989, allocations: 1.016 MB / 372.3 MB, free: 20.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.2989, allocations: 0 / 372.3 MB, free: 20.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00048/0.2994, allocations: 64.27 kB / 372.4 MB, free: 20.39 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.0009023/0.3003, allocations: 0.8684 MB / 373.3 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004246/0.3007, allocations: 127 kB / 373.4 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3007, allocations: 0 / 373.4 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001736/0.3009, allocations: 50.67 kB / 373.4 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006678/0.3016, allocations: 104.7 kB / 373.5 MB, free: 19.71 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/0.316, allocations: 9.474 MB / 383 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005282/0.3165, allocations: 0.9959 MB / 384 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0008165/0.3174, allocations: 471.1 kB / 384.5 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000286/0.3177, allocations: 253.6 kB / 384.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of SimCode: time 7.71e-07/0.3177, allocations: 0 / 384.7 MB, free: 14.6 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.3465, allocations: 15.7 MB / 400.4 MB, free: 3.82 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001375/0.3466, allocations: 202.1 kB / 400.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.04/2.387, allocations: 0 / 400.6 MB, free: 3.57 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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