Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 116.8 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.496/1.496, allocations: 230.6 MB / 250.5 MB, free: 9.398 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001641/0.001641, allocations: 212.4 kB / 306.7 MB, free: 4.352 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04103/0.04103, allocations: 8.912 MB / 371.7 MB, free: 3.48 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002406/0.002406, allocations: 83.86 kB / 496.4 MB, free: 9.887 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3154, allocations: 55.56 MB / 0.5391 GB, free: 26.66 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.00158/0.317, allocations: 0.4983 MB / 0.5395 GB, free: 26.35 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001442/0.3171, allocations: 26 kB / 0.5396 GB, free: 26.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.677e-05/0.3172, allocations: 0 / 0.5396 GB, free: 26.34 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.442e-05/0.3172, allocations: 0 / 0.5396 GB, free: 26.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.625e-05/0.3172, allocations: 3.938 kB / 0.5396 GB, free: 26.33 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001146/0.3173, allocations: 7.281 kB / 0.5396 GB, free: 26.33 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 6.838e-05/0.3174, allocations: 13.94 kB / 0.5396 GB, free: 26.32 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.626e-05/0.3175, allocations: 7.984 kB / 0.5396 GB, free: 26.32 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.35e-05/0.3175, allocations: 7.125 kB / 0.5396 GB, free: 26.31 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.704e-05/0.3175, allocations: 10.53 kB / 0.5396 GB, free: 26.31 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.858e-05/0.3176, allocations: 0 / 0.5396 GB, free: 26.31 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.666e-06/0.3176, allocations: 3.156 kB / 0.5396 GB, free: 26.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.532e-05/0.3176, allocations: 3.938 kB / 0.5396 GB, free: 26.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.541e-05/0.3176, allocations: 3.312 kB / 0.5396 GB, free: 26.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 6.023e-05/0.3177, allocations: 12.22 kB / 0.5396 GB, free: 26.3 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.3177, allocations: 0 / 0.5396 GB, free: 26.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3177, allocations: 0 / 0.5396 GB, free: 26.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.3177, allocations: 3.938 kB / 0.5396 GB, free: 26.3 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003328/0.318, allocations: 328.2 kB / 0.54 GB, free: 25.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.318, allocations: 8.75 kB / 0.54 GB, free: 25.94 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.668e-05/0.3181, allocations: 5.141 kB / 0.54 GB, free: 25.94 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.948e-05/0.3181, allocations: 34.75 kB / 0.54 GB, free: 25.89 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.31e-05/0.3181, allocations: 4.891 kB / 0.54 GB, free: 25.89 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.587e-05/0.3182, allocations: 170.8 kB / 0.5402 GB, free: 25.69 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.943e-06/0.3182, allocations: 384 / 0.5402 GB, free: 25.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.3182, allocations: 3.344 kB / 0.5402 GB, free: 25.69 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.151e-05/0.3183, allocations: 41.02 kB / 0.5402 GB, free: 25.65 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.165e-06/0.3183, allocations: 0 / 0.5402 GB, free: 25.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-06/0.3183, allocations: 0 / 0.5402 GB, free: 25.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.3183, allocations: 0 / 0.5402 GB, free: 25.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.644e-05/0.3184, allocations: 13.45 kB / 0.5402 GB, free: 25.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000128/0.3185, allocations: 160.2 kB / 0.5404 GB, free: 25.45 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.293e-05/0.3186, allocations: 34.72 kB / 0.5404 GB, free: 25.42 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.544e-05/0.3186, allocations: 12.02 kB / 0.5404 GB, free: 25.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.216e-05/0.3186, allocations: 11.19 kB / 0.5404 GB, free: 25.4 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.542e-05/0.3186, allocations: 34.5 kB / 0.5405 GB, free: 25.36 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 8.32e-07/0.3186, allocations: 0 / 0.5405 GB, free: 25.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001322/0.3188, allocations: 54.08 kB / 0.5405 GB, free: 25.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.97e-05/0.3188, allocations: 54.78 kB / 0.5406 GB, free: 25.25 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.536e-05/0.3188, allocations: 97.05 kB / 0.5407 GB, free: 25.15 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.685e-06/0.3188, allocations: 28.98 kB / 0.5407 GB, free: 25.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.32e-05/0.3189, allocations: 84.14 kB / 0.5408 GB, free: 25.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.37e-05/0.3189, allocations: 19.36 kB / 0.5408 GB, free: 25.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.454e-05/0.3189, allocations: 12.88 kB / 0.5408 GB, free: 25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.64e-05/0.3189, allocations: 318 kB / 0.5411 GB, free: 24.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.387e-05/0.319, allocations: 3.156 kB / 0.5411 GB, free: 24.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.1e-05/0.319, allocations: 6.281 kB / 0.5411 GB, free: 24.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.204e-05/0.319, allocations: 15.08 kB / 0.5411 GB, free: 24.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.319, allocations: 0 / 0.5411 GB, free: 24.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.49e-05/0.3191, allocations: 50.2 kB / 0.5412 GB, free: 24.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.3191, allocations: 14.22 kB / 0.5412 GB, free: 24.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3191, allocations: 0 / 0.5412 GB, free: 24.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.3191, allocations: 0 / 0.5412 GB, free: 24.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.934e-05/0.3192, allocations: 16.61 kB / 0.5412 GB, free: 24.62 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.3192, allocations: 0 / 0.5412 GB, free: 24.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.553e-05/0.3192, allocations: 0 / 0.5412 GB, free: 24.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-06/0.3192, allocations: 3.062 kB / 0.5412 GB, free: 24.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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 4.358e-05/0.3193, allocations: 105.8 kB / 0.5413 GB, free: 24.51 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-06/0.3193, allocations: 7.891 kB / 0.5413 GB, free: 24.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.68e-05/0.3193, allocations: 14.66 kB / 0.5413 GB, free: 24.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.3193, allocations: 0 / 0.5413 GB, free: 24.48 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3193, allocations: 0 / 0.5413 GB, free: 24.48 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.3193, allocations: 0 / 0.5413 GB, free: 24.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.785e-05/0.3194, allocations: 151.5 kB / 0.5415 GB, free: 24.29 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.3194, allocations: 0 / 0.5415 GB, free: 24.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.194e-05/0.3194, allocations: 17.66 kB / 0.5415 GB, free: 24.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3194, allocations: 3.938 kB / 0.5415 GB, free: 24.28 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.3194, allocations: 0 / 0.5415 GB, free: 24.28 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.462e-06/0.3194, allocations: 3.156 kB / 0.5415 GB, free: 24.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3194, allocations: 0 / 0.5415 GB, free: 24.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.999e-05/0.3195, allocations: 79.84 kB / 0.5416 GB, free: 24.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.607e-05/0.3195, allocations: 81.05 kB / 0.5416 GB, free: 24.11 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.072e-05/0.3196, allocations: 0 / 0.5416 GB, free: 24.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.729e-05/0.3196, allocations: 3 kB / 0.5416 GB, free: 24.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.488e-05/0.3196, allocations: 0 / 0.5416 GB, free: 24.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-06/0.3196, allocations: 4 kB / 0.5417 GB, free: 24.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.909e-05/0.3196, allocations: 86.2 kB / 0.5417 GB, free: 24.03 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3196, allocations: 4.062 kB / 0.5417 GB, free: 24.02 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001867/0.3198, allocations: 7.156 kB / 0.5417 GB, free: 24.02 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (i) * 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 (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 Backend phase and start with SimCode phase: time 0.0002185/0.32, allocations: 0.6194 MB / 0.5424 GB, free: 23.4 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.003e-05/0.3201, allocations: 12.56 kB / 0.5424 GB, free: 23.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3201, allocations: 0 / 0.5424 GB, free: 23.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.361e-05/0.3201, allocations: 18.48 kB / 0.5424 GB, free: 23.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.3203, allocations: 6.375 kB / 0.5424 GB, free: 23.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007496/0.321, allocations: 1.173 MB / 0.5435 GB, free: 22.24 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.766e-05/0.3211, allocations: 0.6864 MB / 0.5442 GB, free: 21.54 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.443e-05/0.3211, allocations: 0 / 0.5442 GB, free: 21.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.426e-05/0.3211, allocations: 10.5 kB / 0.5442 GB, free: 21.53 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3211, allocations: 0 / 0.5442 GB, free: 21.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01797/0.3391, allocations: 1.149 MB / 0.5453 GB, free: 21.14 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.4/8.74, allocations: 8.078 kB / 0.5453 GB, free: 21.14 MB / 382.1 MB " [Timeout remaining time 651] (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical2_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical2.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.497331843012944] Failed to read output from testmodel.py, exit status != 0: 8.86281656200299 8.879606884 8.558929111 Calling exit ...