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.001401/0.001401, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.00148/0.00148, allocations: 220.2 kB / 24.53 MB, free: 4.008 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.479/1.479, allocations: 230.5 MB / 258.2 MB, free: 7.988 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Batteries.Examples.ShowImpedance,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Batteries_Examples_ShowImpedance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 63.91 kB / 378.5 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3066/0.3085, allocations: 53.4 MB / 431.9 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003514/0.312, allocations: 1.932 MB / 433.9 MB, free: 4.727 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.314, allocations: 1.265 MB / 435.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.084e-05/0.314, allocations: 4 kB / 435.1 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001041/0.3151, allocations: 0.5096 MB / 435.7 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002303/0.3153, allocations: 199.4 kB / 435.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004863/0.3158, allocations: 171.3 kB / 436 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003659/0.3162, allocations: 222.5 kB / 436.2 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.916e-05/0.3163, allocations: 17.8 kB / 436.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002487/0.3165, allocations: 123.6 kB / 436.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003108/0.3168, allocations: 243.4 kB / 436.6 MB, free: 1.984 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.781e-05/0.3169, allocations: 8 kB / 436.6 MB, free: 1.977 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001442/0.317, allocations: 63.91 kB / 436.7 MB, free: 1.914 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002246/0.3172, allocations: 263.3 kB / 436.9 MB, free: 1.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002424/0.3175, allocations: 277.9 kB / 437.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008543/0.3183, allocations: 0.7671 MB / 438 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3183, allocations: 0 / 438 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3183, allocations: 0 / 438 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.3183, allocations: 0 / 438 MB, free: 0.6133 MB / 334.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.002645/0.321, allocations: 1.137 MB / 439.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.321, allocations: 12.03 kB / 439.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.852e-05/0.3211, allocations: 4.188 kB / 439.1 MB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.469e-05/0.3211, allocations: 34.69 kB / 439.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001923/0.3213, allocations: 96.31 kB / 439.3 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001046/0.3223, allocations: 0.703 MB / 440 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.388e-05/0.3223, allocations: 384 / 440 MB, free: 14.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.98e-05/0.3224, allocations: 4.375 kB / 440 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.3226, allocations: 121.5 kB / 440.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.3227, allocations: 0 / 440.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.3227, allocations: 3.984 kB / 440.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.3227, allocations: 4 kB / 440.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003614/0.323, allocations: 143.9 kB / 440.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001074/0.3241, allocations: 0.7821 MB / 441 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/0.3243, allocations: 90.45 kB / 441.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001893/0.3245, allocations: 72.91 kB / 441.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.66e-05/0.3245, allocations: 0 / 441.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.496e-05/0.3246, allocations: 34.55 kB / 441.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 8.11e-07/0.3246, allocations: 0 / 441.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008604/0.3254, allocations: 336.9 kB / 441.5 MB, free: 12.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.3255, allocations: 51.41 kB / 441.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001808/0.3273, allocations: 1.405 MB / 443 MB, free: 11.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.712e-05/0.3273, allocations: 25.7 kB / 443 MB, free: 11.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003859/0.3277, allocations: 384.4 kB / 443.4 MB, free: 11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.065e-05/0.3277, allocations: 11.94 kB / 443.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.98e-05/0.3278, allocations: 17.72 kB / 443.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.328, allocations: 313.9 kB / 443.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.3281, allocations: 71.94 kB / 443.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002118/0.3283, allocations: 86.52 kB / 443.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003514/0.3287, allocations: 158.3 kB / 444 MB, free: 10.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.3287, allocations: 0 / 444 MB, free: 10.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006108/0.3293, allocations: 268.9 kB / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.059e-05/0.3293, allocations: 4 kB / 444.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/0.3293, allocations: 7.938 kB / 444.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.3294, allocations: 0 / 444.3 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001915/0.3296, allocations: 20.08 kB / 444.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.3296, allocations: 4 kB / 444.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001899/0.3297, allocations: 11.94 kB / 444.4 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.3298, allocations: 4 kB / 444.4 MB, free: 10 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.0003854/0.3302, allocations: 337.6 kB / 444.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001903/0.3303, allocations: 91.42 kB / 444.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006401/0.331, allocations: 281.6 kB / 445 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.331, allocations: 0 / 445 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.331, allocations: 0 / 445 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.331, allocations: 0 / 445 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005799/0.3316, allocations: 497.8 kB / 445.5 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.3316, allocations: 4 kB / 445.5 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.056e-05/0.3317, allocations: 15.98 kB / 445.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3317, allocations: 0 / 445.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.3317, allocations: 3.984 kB / 445.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.3317, allocations: 0 / 445.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3317, allocations: 0 / 445.6 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005879/0.3323, allocations: 327.2 kB / 445.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003346/0.3326, allocations: 155.3 kB / 446 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.839e-05/0.3327, allocations: 4 kB / 446 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001852/0.3329, allocations: 7.984 kB / 446 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.07e-05/0.3329, allocations: 7.984 kB / 446 MB, free: 8.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.3329, allocations: 4 kB / 446.1 MB, free: 8.223 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001368/0.3343, allocations: 1.013 MB / 447.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3343, allocations: 0 / 447.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003535/0.3346, allocations: 60 kB / 447.1 MB, free: 7.141 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.001007/0.3357, allocations: 0.8642 MB / 448 MB, free: 6.246 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004098/0.3361, allocations: 131.8 kB / 448.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3361, allocations: 0 / 448.1 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.3362, allocations: 47.97 kB / 448.2 MB, free: 6.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00059/0.3368, allocations: 115.4 kB / 448.3 MB, free: 5.957 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01204/0.3489, allocations: 8.799 MB / 457.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007514/0.3496, allocations: 0.9928 MB / 458.1 MB, free: 12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007018/0.3503, allocations: 478.3 kB / 458.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003427/0.3507, allocations: 247.4 kB / 458.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.3507, allocations: 4 kB / 458.8 MB, free: 11.28 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04757/0.3982, allocations: 16.32 MB / 475.1 MB, free: 11.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/12.86, allocations: 12.73 kB / 475.1 MB, free: 11.12 MB / 382.1 MB " [Timeout remaining time 647] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.20426517300075]