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.00154/0.00154, allocations: 110.4 kB / 19.73 MB, free: 2.242 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.51/1.51, allocations: 230.6 MB / 253.4 MB, free: 14.49 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.001815/0.001815, allocations: 207.2 kB / 310 MB, free: 3.109 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.0409/0.0409, allocations: 8.922 MB / 375.4 MB, free: 6.762 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.002549/0.002549, allocations: 79.88 kB / 0.49 GB, free: 44.91 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09379/0.09634, allocations: 55.61 MB / 0.5443 GB, free: 5.199 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.001727/0.09807, allocations: 0.4972 MB / 0.5448 GB, free: 4.699 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.000149/0.09822, allocations: 35.83 kB / 0.5448 GB, free: 4.664 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.515e-05/0.09825, allocations: 0 / 0.5448 GB, free: 4.664 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 2.037e-05/0.09827, allocations: 7.938 kB / 0.5448 GB, free: 4.656 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 3.977e-05/0.09831, allocations: 0 / 0.5448 GB, free: 4.656 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000101/0.09841, allocations: 0 / 0.5448 GB, free: 4.656 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 6.571e-05/0.09847, allocations: 23.86 kB / 0.5448 GB, free: 4.633 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.748e-05/0.09852, allocations: 0 / 0.5448 GB, free: 4.633 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.38e-05/0.09854, allocations: 7.984 kB / 0.5448 GB, free: 4.625 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.648e-05/0.0986, allocations: 7.938 kB / 0.5448 GB, free: 4.617 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.763e-05/0.09862, allocations: 0 / 0.5448 GB, free: 4.617 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.386e-06/0.09863, allocations: 0 / 0.5448 GB, free: 4.617 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.09864, allocations: 7.984 kB / 0.5448 GB, free: 4.609 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.001e-05/0.09867, allocations: 11.94 kB / 0.5448 GB, free: 4.598 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 6.356e-05/0.09874, allocations: 8.219 kB / 0.5449 GB, free: 4.59 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.09874, allocations: 0 / 0.5449 GB, free: 4.59 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09874, allocations: 3.938 kB / 0.5449 GB, free: 4.586 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.152e-06/0.09875, allocations: 0 / 0.5449 GB, free: 4.586 MB / 366.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.0003468/0.09909, allocations: 250.4 kB / 0.5451 GB, free: 4.309 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.343e-05/0.09914, allocations: 11.98 kB / 0.5451 GB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.478e-05/0.09915, allocations: 192 / 0.5451 GB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.041e-05/0.09918, allocations: 34.75 kB / 0.5451 GB, free: 4.254 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.977e-05/0.09921, allocations: 8.891 kB / 0.5452 GB, free: 4.246 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001187/0.09933, allocations: 106.5 kB / 0.5453 GB, free: 4.117 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.508e-06/0.09934, allocations: 384 / 0.5453 GB, free: 4.117 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.09936, allocations: 8.375 kB / 0.5453 GB, free: 4.109 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.574e-05/0.09946, allocations: 37.95 kB / 0.5453 GB, free: 4.066 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.224e-06/0.09947, allocations: 0 / 0.5453 GB, free: 4.066 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.447e-06/0.09948, allocations: 0 / 0.5453 GB, free: 4.066 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.09948, allocations: 0 / 0.5453 GB, free: 4.066 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.085e-05/0.09952, allocations: 11.98 kB / 0.5453 GB, free: 4.055 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000176/0.0997, allocations: 132.8 kB / 0.5454 GB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.854e-05/0.09978, allocations: 26.58 kB / 0.5455 GB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.319e-05/0.09981, allocations: 16.94 kB / 0.5455 GB, free: 3.828 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.09982, allocations: 3.938 kB / 0.5455 GB, free: 3.824 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.716e-05/0.09985, allocations: 38.5 kB / 0.5455 GB, free: 3.777 MB / 366.1 MB Notification: Performance of pre-optimization done (n=3): time 4.348e-06/0.09985, allocations: 4 kB / 0.5455 GB, free: 3.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001561/0.1, allocations: 45.69 kB / 0.5456 GB, free: 3.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.046e-05/0.1, allocations: 55.41 kB / 0.5456 GB, free: 3.656 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.549e-05/0.1001, allocations: 93.86 kB / 0.5457 GB, free: 3.555 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.1001, allocations: 29.7 kB / 0.5457 GB, free: 3.52 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.555e-05/0.1002, allocations: 80.14 kB / 0.5458 GB, free: 3.438 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.039e-05/0.1002, allocations: 15.88 kB / 0.5458 GB, free: 3.422 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.807e-05/0.1003, allocations: 21.66 kB / 0.5458 GB, free: 3.395 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.1004, allocations: 314.8 kB / 0.5461 GB, free: 3.078 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.614e-05/0.1004, allocations: 4 kB / 0.5462 GB, free: 3.074 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.647e-05/0.1004, allocations: 16.3 kB / 0.5462 GB, free: 3.059 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.512e-05/0.1005, allocations: 24.94 kB / 0.5462 GB, free: 3.031 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1005, allocations: 0 / 0.5462 GB, free: 3.031 MB / 366.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.296e-05/0.1005, allocations: 45.69 kB / 0.5462 GB, free: 2.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.1006, allocations: 11.94 kB / 0.5462 GB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.339e-06/0.1006, allocations: 0 / 0.5462 GB, free: 2.969 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.1006, allocations: 3.938 kB / 0.5463 GB, free: 2.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.992e-05/0.1007, allocations: 8 kB / 0.5463 GB, free: 2.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.491e-06/0.1007, allocations: 4 kB / 0.5463 GB, free: 2.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.059e-05/0.1007, allocations: 3.938 kB / 0.5463 GB, free: 2.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-06/0.1007, allocations: 7.922 kB / 0.5463 GB, free: 2.941 MB / 366.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 7.802e-05/0.1008, allocations: 117.8 kB / 0.5464 GB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.187e-05/0.1008, allocations: 7.891 kB / 0.5464 GB, free: 2.809 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.738e-05/0.1008, allocations: 3.688 kB / 0.5464 GB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1008, allocations: 0 / 0.5464 GB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1008, allocations: 0 / 0.5464 GB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1008, allocations: 4 kB / 0.5464 GB, free: 2.801 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001082/0.1009, allocations: 128.8 kB / 0.5465 GB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1009, allocations: 0 / 0.5465 GB, free: 2.633 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.612e-05/0.101, allocations: 8 kB / 0.5465 GB, free: 2.625 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.101, allocations: 3.938 kB / 0.5465 GB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.503e-06/0.101, allocations: 0 / 0.5465 GB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.101, allocations: 0 / 0.5465 GB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.101, allocations: 0 / 0.5465 GB, free: 2.621 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001285/0.1011, allocations: 81.05 kB / 0.5466 GB, free: 2.523 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.128e-05/0.1012, allocations: 12.03 kB / 0.5466 GB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.1012, allocations: 0 / 0.5466 GB, free: 2.512 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.943e-05/0.1012, allocations: 4 kB / 0.5466 GB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.374e-05/0.1012, allocations: 0 / 0.5466 GB, free: 2.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.1012, allocations: 0 / 0.5466 GB, free: 2.508 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.918e-05/0.1012, allocations: 83.27 kB / 0.5467 GB, free: 2.426 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1012, allocations: 0 / 0.5467 GB, free: 2.426 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000181/0.1014, allocations: 4 kB / 0.5467 GB, free: 2.422 MB / 366.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.0004184/0.1018, allocations: 0.6107 MB / 0.5473 GB, free: 1.781 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.049e-05/0.1019, allocations: 23.92 kB / 0.5473 GB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1019, allocations: 0 / 0.5473 GB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.438e-05/0.1019, allocations: 4.375 kB / 0.5473 GB, free: 1.754 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001346/0.1021, allocations: 7.938 kB / 0.5473 GB, free: 1.746 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.1033, allocations: 1.18 MB / 0.5485 GB, free: 496 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.1036, allocations: 0.6767 MB / 0.5492 GB, free: 15.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.726e-05/0.1036, allocations: 3.984 kB / 0.5492 GB, free: 15.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.293e-05/0.1037, allocations: 11.38 kB / 0.5492 GB, free: 15.77 MB / 382.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1037, allocations: 0 / 0.5492 GB, free: 15.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02427/0.1279, allocations: 1.283 MB / 0.5504 GB, free: 14.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.18, allocations: 17.59 kB / 0.5504 GB, free: 14.59 MB / 382.1 MB " [Timeout remaining time 649] (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: 14.115943241980858] Failed to read output from testmodel.py, exit status != 0: 11.341363718966022 11.362525769 11.25952572 Calling exit ...