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.0018/0.0018, allocations: 117 kB / 18.49 MB, free: 4.566 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.00211/0.00211, allocations: 216.7 kB / 21.46 MB, free: 1.613 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.599/1.599, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.001951/0.001951, allocations: 63.89 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1153, allocations: 53.38 MB / 427 MB, free: 4.613 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.003406/0.1187, allocations: 1.922 MB / 429 MB, free: 2.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002048/0.1208, allocations: 1.253 MB / 430.2 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.1209, allocations: 3.938 kB / 430.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001131/0.122, allocations: 0.5063 MB / 430.7 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002698/0.1223, allocations: 199.4 kB / 430.9 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004853/0.1228, allocations: 163.4 kB / 431.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004444/0.1232, allocations: 230.1 kB / 431.3 MB, free: 340 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.1234, allocations: 13.69 kB / 431.3 MB, free: 324 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003302/0.1237, allocations: 131.5 kB / 431.5 MB, free: 192 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2221/0.3458, allocations: 226.4 kB / 431.7 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.821e-05/0.3458, allocations: 5.438 kB / 431.7 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002321/0.3461, allocations: 62.09 kB / 431.7 MB, free: 7.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002966/0.3464, allocations: 267.6 kB / 432 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002258/0.3466, allocations: 276.2 kB / 432.3 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008371/0.3474, allocations: 0.7716 MB / 433 MB, free: 7.582 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.3474, allocations: 1.5 kB / 433 MB, free: 7.582 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3474, allocations: 0 / 433 MB, free: 7.582 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.705e-05/0.3474, allocations: 0 / 433 MB, free: 7.582 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.002578/0.35, allocations: 1.213 MB / 434.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.3501, allocations: 10.12 kB / 434.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.793e-05/0.3501, allocations: 1.438 kB / 434.3 MB, free: 6.812 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.184e-05/0.3501, allocations: 35.16 kB / 434.3 MB, free: 6.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002317/0.3504, allocations: 99.47 kB / 434.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001011/0.3514, allocations: 0.7527 MB / 435.2 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.3514, allocations: 1.406 kB / 435.2 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.3514, allocations: 3.438 kB / 435.2 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002965/0.3517, allocations: 123.3 kB / 435.3 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.3517, allocations: 0.6875 kB / 435.3 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.59e-05/0.3517, allocations: 1.094 kB / 435.3 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.3517, allocations: 3.719 kB / 435.3 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003808/0.3521, allocations: 144.9 kB / 435.4 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001194/0.3533, allocations: 0.8061 MB / 436.2 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002345/0.3535, allocations: 87.88 kB / 436.3 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001998/0.3537, allocations: 73.97 kB / 436.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.196e-05/0.3538, allocations: 4.656 kB / 436.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.3538, allocations: 32.47 kB / 436.4 MB, free: 5.992 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.323e-06/0.3538, allocations: 0 / 436.4 MB, free: 5.992 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0009582/0.3548, allocations: 326.7 kB / 436.7 MB, free: 5.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.927e-05/0.3548, allocations: 58.06 kB / 436.8 MB, free: 5.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002196/0.357, allocations: 1.411 MB / 438.2 MB, free: 5.703 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.357, allocations: 26.77 kB / 438.2 MB, free: 5.672 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003372/0.3574, allocations: 388 kB / 438.6 MB, free: 5.586 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.904e-05/0.3574, allocations: 8.984 kB / 438.6 MB, free: 5.582 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.76e-05/0.3574, allocations: 20.55 kB / 438.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.202e-05/0.3575, allocations: 311.2 kB / 439 MB, free: 5.258 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/0.3577, allocations: 68.39 kB / 439 MB, free: 5.254 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001906/0.3579, allocations: 87.14 kB / 439.1 MB, free: 5.207 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003773/0.3583, allocations: 157.7 kB / 439.3 MB, free: 5.137 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3583, allocations: 0 / 439.3 MB, free: 5.137 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0007116/0.359, allocations: 269.8 kB / 439.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.359, allocations: 6.016 kB / 439.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.359, allocations: 1.469 kB / 439.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.3591, allocations: 1.25 kB / 439.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002174/0.3593, allocations: 14.67 kB / 439.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.3593, allocations: 1.156 kB / 439.5 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/0.3595, allocations: 18.81 kB / 439.6 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.161e-05/0.3595, allocations: 3.719 kB / 439.6 MB, free: 5 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.000441/0.3599, allocations: 349.3 kB / 439.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001922/0.3601, allocations: 93.56 kB / 440 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007019/0.3608, allocations: 274.6 kB / 440.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.3608, allocations: 1.5 kB / 440.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.3609, allocations: 0 / 440.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.722e-06/0.3609, allocations: 6.078 kB / 440.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006958/0.3616, allocations: 0.5074 MB / 440.8 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.3616, allocations: 0.7969 kB / 440.8 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.548e-05/0.3616, allocations: 13.89 kB / 440.8 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.586e-06/0.3617, allocations: 1.469 kB / 440.8 MB, free: 4.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.3617, allocations: 5.703 kB / 440.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3617, allocations: 0 / 440.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.3617, allocations: 6.656 kB / 440.8 MB, free: 4.355 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004813/0.3622, allocations: 316.9 kB / 441.1 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002989/0.3624, allocations: 235.2 kB / 441.3 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.068e-05/0.3625, allocations: 1.266 kB / 441.4 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.3627, allocations: 7.406 kB / 441.4 MB, free: 3.977 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.245e-05/0.3628, allocations: 8.062 kB / 441.4 MB, free: 3.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.201e-05/0.3628, allocations: 5.922 kB / 441.4 MB, free: 3.969 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001526/0.3643, allocations: 1.018 MB / 442.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3643, allocations: 0 / 442.4 MB, free: 3.633 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004036/0.3647, allocations: 62 kB / 442.5 MB, free: 3.633 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.0007914/0.3655, allocations: 0.8687 MB / 443.3 MB, free: 2.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004012/0.3659, allocations: 122.6 kB / 443.4 MB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3659, allocations: 0 / 443.4 MB, free: 2.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001669/0.3661, allocations: 57.34 kB / 443.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006161/0.3667, allocations: 101.9 kB / 443.6 MB, free: 2.777 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0123/0.379, allocations: 8.79 MB / 452.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007623/0.3797, allocations: 0.9997 MB / 453.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008066/0.3806, allocations: 471.1 kB / 453.8 MB, free: 14.69 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003622/0.3809, allocations: 253 kB / 454.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3809, allocations: 0 / 454.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04147/0.4224, allocations: 16.2 MB / 470.3 MB, free: 4.387 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.806/10.23, allocations: 11.98 kB / 470.3 MB, free: 4.375 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/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: 13.672146513010375]