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.001846/0.001846, allocations: 114 kB / 20.44 MB, free: 1.469 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.002317/0.002317, allocations: 214.1 kB / 23.74 MB, free: 4.695 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.412/1.412, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.002619/0.002619, allocations: 59.89 kB / 377.8 MB, free: 3.031 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.284, allocations: 53.42 MB / 431.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Batteries.Examples.ShowImpedance): time 0.005177/0.2892, allocations: 1.924 MB / 433.1 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003034/0.2922, allocations: 1.273 MB / 434.4 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001249/0.2923, allocations: 4 kB / 434.4 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001585/0.2939, allocations: 0.4995 MB / 434.9 MB, free: 2.984 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003911/0.2943, allocations: 195.4 kB / 435.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006913/0.295, allocations: 175.4 kB / 435.2 MB, free: 2.621 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004835/0.2955, allocations: 219.1 kB / 435.4 MB, free: 2.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000108/0.2956, allocations: 9.812 kB / 435.5 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003586/0.296, allocations: 131.5 kB / 435.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004743/0.2964, allocations: 231.4 kB / 435.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.658e-05/0.2965, allocations: 11.94 kB / 435.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002243/0.2967, allocations: 63.89 kB / 435.9 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003429/0.297, allocations: 267.2 kB / 436.1 MB, free: 1.703 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003538/0.2974, allocations: 277.9 kB / 436.4 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001282/0.2987, allocations: 0.7772 MB / 437.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2987, allocations: 0 / 437.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2987, allocations: 0 / 437.2 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.968e-06/0.2987, allocations: 4 kB / 437.2 MB, free: 0.6484 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.004213/0.3029, allocations: 1.129 MB / 438.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.303, allocations: 12.03 kB / 438.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.879e-05/0.303, allocations: 34.69 kB / 438.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000298/0.3033, allocations: 96.31 kB / 438.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001716/0.305, allocations: 0.7031 MB / 439.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.305, allocations: 384 / 439.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.112e-05/0.3051, allocations: 4.375 kB / 439.2 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004536/0.3055, allocations: 117.7 kB / 439.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.137e-05/0.3055, allocations: 0 / 439.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.086e-05/0.3056, allocations: 0 / 439.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.3056, allocations: 4 kB / 439.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006264/0.3062, allocations: 147.9 kB / 439.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.3079, allocations: 0.7859 MB / 440.2 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003694/0.3083, allocations: 82.52 kB / 440.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000303/0.3086, allocations: 72.91 kB / 440.4 MB, free: 13.33 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.529e-05/0.3086, allocations: 7.969 kB / 440.4 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.3087, allocations: 34.56 kB / 440.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.463e-06/0.3087, allocations: 0 / 440.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.001371/0.31, allocations: 328.9 kB / 440.7 MB, free: 12.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.488e-05/0.3101, allocations: 51.41 kB / 440.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003131/0.3132, allocations: 1.409 MB / 442.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.272e-05/0.3133, allocations: 25.7 kB / 442.2 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005729/0.3138, allocations: 388.4 kB / 442.6 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.044e-05/0.3139, allocations: 11.94 kB / 442.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.864e-05/0.314, allocations: 17.72 kB / 442.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001885/0.3142, allocations: 309.9 kB / 442.9 MB, free: 10.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003023/0.3145, allocations: 71.94 kB / 443 MB, free: 10.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003285/0.3148, allocations: 86.52 kB / 443.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005983/0.3154, allocations: 154.4 kB / 443.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.3154, allocations: 0 / 443.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.001087/0.3165, allocations: 272.9 kB / 443.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.354e-05/0.3165, allocations: 4 kB / 443.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.3165, allocations: 8 kB / 443.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.956e-05/0.3165, allocations: 0 / 443.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002748/0.3168, allocations: 15.92 kB / 443.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.3168, allocations: 4 kB / 443.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003561/0.3172, allocations: 15.88 kB / 443.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.779e-05/0.3172, allocations: 8.281 kB / 443.6 MB, free: 10.05 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.0006512/0.3179, allocations: 337.7 kB / 443.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003044/0.3182, allocations: 91.42 kB / 444 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009995/0.3192, allocations: 285.3 kB / 444.3 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.824e-06/0.3192, allocations: 0 / 444.3 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3192, allocations: 0 / 444.3 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3192, allocations: 0 / 444.3 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009346/0.3201, allocations: 493.8 kB / 444.7 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3201, allocations: 0 / 444.7 MB, free: 8.805 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001386/0.3203, allocations: 15.98 kB / 444.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.489e-06/0.3203, allocations: 0 / 444.8 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.054e-05/0.3203, allocations: 3.984 kB / 444.8 MB, free: 8.785 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.991e-06/0.3203, allocations: 3.984 kB / 444.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.3203, allocations: 4 kB / 444.8 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008479/0.3211, allocations: 323.2 kB / 445.1 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005858/0.3217, allocations: 155.3 kB / 445.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.158e-05/0.3218, allocations: 4 kB / 445.2 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002877/0.3221, allocations: 7.984 kB / 445.2 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.457e-05/0.3222, allocations: 3.984 kB / 445.3 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.532e-05/0.3222, allocations: 8 kB / 445.3 MB, free: 8.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002235/0.3244, allocations: 1.013 MB / 446.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3244, allocations: 0 / 446.3 MB, free: 7.246 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006278/0.325, allocations: 64 kB / 446.3 MB, free: 7.184 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.001406/0.3265, allocations: 0.8719 MB / 447.2 MB, free: 6.281 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006379/0.3271, allocations: 119.9 kB / 447.3 MB, free: 6.164 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3271, allocations: 0 / 447.3 MB, free: 6.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003041/0.3274, allocations: 64.22 kB / 447.4 MB, free: 6.102 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009167/0.3283, allocations: 99.34 kB / 447.5 MB, free: 6.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01959/0.3479, allocations: 8.791 MB / 456.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009938/0.3489, allocations: 1.004 MB / 457.3 MB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001011/0.3499, allocations: 474 kB / 457.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005415/0.3505, allocations: 247.4 kB / 458 MB, free: 11.33 MB / 366.1 MB Notification: Performance of SimCode: time 1.422e-06/0.3505, allocations: 4 kB / 458 MB, free: 11.33 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07065/0.4211, allocations: 16.28 MB / 474.3 MB, free: 11.21 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/12.97, allocations: 15.7 kB / 474.3 MB, free: 11.2 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 & 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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Batteries.Examples.ShowImpedance_res.csv","/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: 15.634137365999777]