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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001357/0.001357, allocations: 116.5 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001389/0.001389, allocations: 216.9 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 230.2 MB / 254.5 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002524/0.002524, allocations: 67.89 kB / 373.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1116, allocations: 53.32 MB / 426.6 MB, free: 5.027 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003396/0.115, allocations: 1.922 MB / 428.6 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001974/0.1169, allocations: 1.253 MB / 429.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.375e-05/0.117, allocations: 7.938 kB / 429.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.1182, allocations: 0.5062 MB / 430.3 MB, free: 1.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002209/0.1184, allocations: 195.4 kB / 430.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004211/0.1188, allocations: 170.4 kB / 430.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003921/0.1192, allocations: 227.1 kB / 430.9 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.73e-05/0.1193, allocations: 13.69 kB / 430.9 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002338/0.1195, allocations: 131.5 kB / 431.1 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002727/0.1198, allocations: 227.4 kB / 431.3 MB, free: 384 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.576e-05/0.1198, allocations: 8 kB / 431.3 MB, free: 376 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001496/0.12, allocations: 67.91 kB / 431.4 MB, free: 308 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002291/0.1202, allocations: 263.3 kB / 431.6 MB, free: 44 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.2318/0.3521, allocations: 275.5 kB / 431.9 MB, free: 7.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001022/0.3531, allocations: 0.7661 MB / 432.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3531, allocations: 0.9688 kB / 432.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3531, allocations: 1.25 kB / 432.6 MB, free: 7.762 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.3531, allocations: 0 / 432.6 MB, free: 7.762 MB / 350.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.002575/0.3557, allocations: 1.214 MB / 433.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.3557, allocations: 6.875 kB / 433.9 MB, free: 6.996 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.615e-05/0.3558, allocations: 37.44 kB / 433.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001611/0.3559, allocations: 96.08 kB / 434 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009927/0.3569, allocations: 0.7508 MB / 434.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.3569, allocations: 2.281 kB / 434.8 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.3569, allocations: 6.75 kB / 434.8 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.3572, allocations: 119.5 kB / 434.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.3572, allocations: 4.375 kB / 434.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.3572, allocations: 0 / 434.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.3572, allocations: 1.125 kB / 434.9 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003158/0.3575, allocations: 147.2 kB / 435 MB, free: 6.508 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.3586, allocations: 0.8061 MB / 435.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/0.3588, allocations: 90.28 kB / 435.9 MB, free: 6.219 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.359, allocations: 73.95 kB / 436 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.359, allocations: 0 / 436 MB, free: 6.211 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.167e-05/0.359, allocations: 35.55 kB / 436 MB, free: 6.172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/0.359, allocations: 3.469 kB / 436 MB, free: 6.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007734/0.3598, allocations: 326.8 kB / 436.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.662e-05/0.3599, allocations: 56.67 kB / 436.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001797/0.3617, allocations: 1.405 MB / 437.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.7e-05/0.3617, allocations: 25.7 kB / 437.8 MB, free: 5.855 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002695/0.3619, allocations: 394.7 kB / 438.2 MB, free: 5.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.754e-05/0.362, allocations: 9.5 kB / 438.2 MB, free: 5.762 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.448e-05/0.362, allocations: 20.7 kB / 438.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.734e-05/0.3621, allocations: 307.8 kB / 438.5 MB, free: 5.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/0.3622, allocations: 67.64 kB / 438.6 MB, free: 5.441 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001657/0.3624, allocations: 87.83 kB / 438.7 MB, free: 5.418 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000314/0.3627, allocations: 159.4 kB / 438.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3627, allocations: 0.75 kB / 438.9 MB, free: 5.391 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005549/0.3633, allocations: 267.9 kB / 439.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.3633, allocations: 6.375 kB / 439.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.3633, allocations: 4.438 kB / 439.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.3633, allocations: 1.094 kB / 439.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001866/0.3635, allocations: 17.53 kB / 439.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.3635, allocations: 1.062 kB / 439.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002126/0.3637, allocations: 13.17 kB / 439.2 MB, free: 5.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.3637, allocations: 2.906 kB / 439.2 MB, free: 5.301 MB / 350.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.000346/0.3641, allocations: 342.2 kB / 439.5 MB, free: 5.129 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001747/0.3643, allocations: 92.22 kB / 439.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006155/0.3649, allocations: 287.1 kB / 439.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.3649, allocations: 1.578 kB / 439.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.3649, allocations: 1.125 kB / 439.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.3649, allocations: 0 / 439.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000727/0.3656, allocations: 0.5101 MB / 440.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3656, allocations: 2.438 kB / 440.4 MB, free: 4.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.135e-05/0.3657, allocations: 15.33 kB / 440.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.3657, allocations: 0.6562 kB / 440.4 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.419e-05/0.3657, allocations: 5.75 kB / 440.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.3657, allocations: 1.062 kB / 440.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3657, allocations: 0 / 440.4 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005099/0.3662, allocations: 318.7 kB / 440.7 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004428/0.3667, allocations: 239.8 kB / 441 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.555e-05/0.3668, allocations: 1.438 kB / 441 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001931/0.367, allocations: 7.062 kB / 441 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.556e-05/0.367, allocations: 6.391 kB / 441 MB, free: 4.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.627e-06/0.367, allocations: 2.188 kB / 441 MB, free: 4.273 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001609/0.3686, allocations: 1.015 MB / 442 MB, free: 3.938 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3686, allocations: 0 / 442 MB, free: 3.938 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003947/0.369, allocations: 68 kB / 442 MB, free: 3.93 MB / 350.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.0008403/0.3699, allocations: 0.8626 MB / 442.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003992/0.3703, allocations: 128.5 kB / 443 MB, free: 3.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3703, allocations: 0 / 443 MB, free: 3.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001635/0.3704, allocations: 52.42 kB / 443.1 MB, free: 3.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006165/0.371, allocations: 108.1 kB / 443.2 MB, free: 3.078 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01379/0.3848, allocations: 8.789 MB / 452 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008698/0.3857, allocations: 0.9943 MB / 453 MB, free: 15.02 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008851/0.3866, allocations: 478.9 kB / 453.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003575/0.3869, allocations: 248.8 kB / 453.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of SimCode: time 1.232e-06/0.3869, allocations: 0 / 453.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0478/0.4347, allocations: 16.16 MB / 469.9 MB, free: 4.996 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.64/10.07, allocations: 3.984 kB / 469.9 MB, free: 4.992 MB / 366.1 MB " [Timeout remaining time 650] (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 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance.fmu > Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Batteries/Examples/ShowImpedance/ShowImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.988777389284223]