Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical3.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.001906/0.001906, 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.466/1.466, allocations: 230.6 MB / 250.5 MB, free: 9.383 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.001557/0.001557, allocations: 210 kB / 306.7 MB, free: 4.332 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.04111/0.04111, allocations: 8.912 MB / 371.7 MB, free: 3.465 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.Electrical3,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical3,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical3",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.002484/0.002484, allocations: 79.88 kB / 496.4 MB, free: 9.871 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2821/0.2846, allocations: 55.57 MB / 0.5391 GB, free: 26.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical3): time 0.00201/0.2866, allocations: 1.246 MB / 0.5403 GB, free: 25.74 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001401/0.2867, allocations: 23.03 kB / 0.5403 GB, free: 25.72 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.6e-05/0.2868, allocations: 0 / 0.5403 GB, free: 25.72 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.877e-05/0.2868, allocations: 7.172 kB / 0.5403 GB, free: 25.72 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.265e-05/0.2869, allocations: 3.094 kB / 0.5403 GB, free: 25.72 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000125/0.287, allocations: 4 kB / 0.5403 GB, free: 25.71 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 7.041e-05/0.287, allocations: 21.56 kB / 0.5403 GB, free: 25.7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.796e-05/0.2871, allocations: 3.125 kB / 0.5403 GB, free: 25.7 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.15e-05/0.2871, allocations: 7.172 kB / 0.5403 GB, free: 25.7 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.862e-05/0.2872, allocations: 14.58 kB / 0.5404 GB, free: 25.69 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.2872, allocations: 0 / 0.5404 GB, free: 25.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.235e-06/0.2872, allocations: 0 / 0.5404 GB, free: 25.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.533e-05/0.2872, allocations: 4 kB / 0.5404 GB, free: 25.69 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.487e-05/0.2872, allocations: 3.531 kB / 0.5404 GB, free: 25.69 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 6.699e-05/0.2873, allocations: 12.34 kB / 0.5404 GB, free: 25.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.2873, allocations: 3.094 kB / 0.5404 GB, free: 25.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2873, allocations: 0 / 0.5404 GB, free: 25.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.125e-05/0.2873, allocations: 0 / 0.5404 GB, free: 25.68 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.0003025/0.2876, allocations: 324.3 kB / 0.5407 GB, free: 25.33 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.2877, allocations: 9.531 kB / 0.5407 GB, free: 25.33 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.279e-05/0.2877, allocations: 4.188 kB / 0.5407 GB, free: 25.32 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.677e-05/0.2877, allocations: 30.75 kB / 0.5407 GB, free: 25.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.981e-05/0.2877, allocations: 8.891 kB / 0.5407 GB, free: 25.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.759e-05/0.2878, allocations: 170.9 kB / 0.5409 GB, free: 25.08 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.2878, allocations: 384 / 0.5409 GB, free: 25.08 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.2878, allocations: 3.469 kB / 0.5409 GB, free: 25.08 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.658e-05/0.2879, allocations: 37.17 kB / 0.5409 GB, free: 25.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.2879, allocations: 0 / 0.5409 GB, free: 25.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.2879, allocations: 7.375 kB / 0.5409 GB, free: 25.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.2879, allocations: 0 / 0.5409 GB, free: 25.04 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.107e-05/0.2879, allocations: 14.33 kB / 0.541 GB, free: 25.03 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001221/0.2881, allocations: 152.4 kB / 0.5411 GB, free: 24.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.886e-05/0.2881, allocations: 38.75 kB / 0.5411 GB, free: 24.8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.379e-05/0.2882, allocations: 12.11 kB / 0.5411 GB, free: 24.79 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.136e-05/0.2882, allocations: 3.938 kB / 0.5412 GB, free: 24.79 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.642e-05/0.2882, allocations: 41.66 kB / 0.5412 GB, free: 24.74 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.2882, allocations: 4 kB / 0.5412 GB, free: 24.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001333/0.2883, allocations: 45.77 kB / 0.5412 GB, free: 24.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.2884, allocations: 54.97 kB / 0.5413 GB, free: 24.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.132e-05/0.2884, allocations: 97.11 kB / 0.5414 GB, free: 24.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.294e-06/0.2884, allocations: 25.7 kB / 0.5414 GB, free: 24.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.071e-05/0.2884, allocations: 87.44 kB / 0.5415 GB, free: 24.42 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.248e-05/0.2885, allocations: 11.47 kB / 0.5415 GB, free: 24.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.487e-05/0.2885, allocations: 17 kB / 0.5415 GB, free: 24.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.004e-05/0.2885, allocations: 314.8 kB / 0.5418 GB, free: 24.08 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.276e-05/0.2885, allocations: 7.156 kB / 0.5418 GB, free: 24.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.109e-05/0.2885, allocations: 13.41 kB / 0.5418 GB, free: 24.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.055e-05/0.2886, allocations: 15.14 kB / 0.5419 GB, free: 24.06 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2886, allocations: 0 / 0.5419 GB, free: 24.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.3e-05/0.2886, allocations: 49.45 kB / 0.5419 GB, free: 24.02 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.047e-05/0.2886, allocations: 10.28 kB / 0.5419 GB, free: 24.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.2886, allocations: 0 / 0.5419 GB, free: 24.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.2887, allocations: 0 / 0.5419 GB, free: 24.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.953e-05/0.2887, allocations: 12.94 kB / 0.5419 GB, free: 24.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.369e-06/0.2887, allocations: 4 kB / 0.5419 GB, free: 24.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.647e-05/0.2888, allocations: 4 kB / 0.5419 GB, free: 24.01 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.196e-06/0.2888, allocations: 0 / 0.5419 GB, free: 24.01 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 3.956e-05/0.2888, allocations: 112.9 kB / 0.542 GB, free: 23.89 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.764e-06/0.2888, allocations: 7.891 kB / 0.542 GB, free: 23.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.687e-05/0.2888, allocations: 10.62 kB / 0.5421 GB, free: 23.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.2888, allocations: 0 / 0.5421 GB, free: 23.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.2888, allocations: 0 / 0.5421 GB, free: 23.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.2888, allocations: 0.5156 kB / 0.5421 GB, free: 23.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.713e-05/0.2889, allocations: 152.2 kB / 0.5422 GB, free: 23.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2889, allocations: 6.531 kB / 0.5422 GB, free: 23.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.677e-05/0.2889, allocations: 6.031 kB / 0.5422 GB, free: 23.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2889, allocations: 3.938 kB / 0.5422 GB, free: 23.67 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.289, allocations: 4 kB / 0.5422 GB, free: 23.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.289, allocations: 3.938 kB / 0.5422 GB, free: 23.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.289, allocations: 2.969 kB / 0.5422 GB, free: 23.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.91e-05/0.289, allocations: 74.78 kB / 0.5423 GB, free: 23.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.552e-05/0.2891, allocations: 89.11 kB / 0.5424 GB, free: 23.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.085e-05/0.2891, allocations: 7.219 kB / 0.5424 GB, free: 23.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.629e-05/0.2891, allocations: 0 / 0.5424 GB, free: 23.48 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.028e-05/0.2891, allocations: 0 / 0.5424 GB, free: 23.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-06/0.2891, allocations: 0 / 0.5424 GB, free: 23.48 MB / 382.1 MB Notification: Performance of sorting global known variables: time 1.509e-05/0.2891, allocations: 85.59 kB / 0.5425 GB, free: 23.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 5e-08/0.2891, allocations: 0 / 0.5425 GB, free: 23.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0001719/0.2893, allocations: 6.312 kB / 0.5425 GB, free: 23.41 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.0002216/0.2895, allocations: 0.6156 MB / 0.5431 GB, free: 22.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.276e-05/0.2896, allocations: 13.66 kB / 0.5431 GB, free: 22.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2896, allocations: 0 / 0.5431 GB, free: 22.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.543e-05/0.2896, allocations: 13.95 kB / 0.5431 GB, free: 22.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.2897, allocations: 0 / 0.5431 GB, free: 22.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007527/0.2905, allocations: 1.179 MB / 0.5443 GB, free: 21.63 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001095/0.2906, allocations: 0.678 MB / 0.5449 GB, free: 20.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.552e-05/0.2906, allocations: 0 / 0.5449 GB, free: 20.93 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.733e-05/0.2906, allocations: 15.38 kB / 0.5449 GB, free: 20.92 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2906, allocations: 3.094 kB / 0.5449 GB, free: 20.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0185/0.3092, allocations: 1.161 MB / 0.5461 GB, free: 20.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.584/8.893, allocations: 5.797 kB / 0.5461 GB, free: 20.52 MB / 382.1 MB " [Timeout remaining time 651] (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical3.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical3.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical3_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical3.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.586662994988728] Failed to read output from testmodel.py, exit status != 0: 9.021494154992979 9.04574556 8.753445376 Calling exit ...