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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 225.6 MB / 244.8 MB, free: 14.16 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 194.8 kB / 299.8 MB, free: 9.812 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04161/0.04161, allocations: 8.931 MB / 363.6 MB, free: 10.16 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002397/0.002397, allocations: 85.41 kB / 486 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1105, allocations: 54.42 MB / 0.5278 GB, free: 1.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.FirstSteps.Electrical2): time 0.001797/0.1123, allocations: 0.4969 MB / 0.5283 GB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001631/0.1124, allocations: 23.95 kB / 0.5283 GB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.003e-05/0.1125, allocations: 0 / 0.5283 GB, free: 0.8281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.374e-05/0.1125, allocations: 3.938 kB / 0.5283 GB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.467e-05/0.1125, allocations: 4 kB / 0.5283 GB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001351/0.1127, allocations: 7.922 kB / 0.5283 GB, free: 0.8125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.521e-05/0.1128, allocations: 15.94 kB / 0.5283 GB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.298e-05/0.1128, allocations: 0 / 0.5283 GB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.318e-05/0.1128, allocations: 11.92 kB / 0.5283 GB, free: 0.7852 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.937e-05/0.1129, allocations: 4 kB / 0.5283 GB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.878e-05/0.1129, allocations: 0 / 0.5283 GB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.093e-05/0.1129, allocations: 0 / 0.5283 GB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.774e-05/0.113, allocations: 11.92 kB / 0.5284 GB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.851e-05/0.113, allocations: 4 kB / 0.5284 GB, free: 0.7656 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 7.62e-05/0.1131, allocations: 19.44 kB / 0.5284 GB, free: 0.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.1131, allocations: 3.938 kB / 0.5284 GB, free: 0.7461 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1131, allocations: 0 / 0.5284 GB, free: 0.7461 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.66e-06/0.1131, allocations: 0 / 0.5284 GB, free: 0.7461 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005138/0.1136, allocations: 332.2 kB / 0.5287 GB, free: 380 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.1137, allocations: 8.031 kB / 0.5287 GB, free: 372 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.138e-05/0.1137, allocations: 30.75 kB / 0.5287 GB, free: 332 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.643e-05/0.1137, allocations: 4.938 kB / 0.5287 GB, free: 328 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001587/0.1139, allocations: 164.3 kB / 0.5289 GB, free: 124 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.1139, allocations: 8.375 kB / 0.5289 GB, free: 116 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.964e-05/0.1139, allocations: 384 / 0.5289 GB, free: 116 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001159/0.114, allocations: 38.19 kB / 0.5289 GB, free: 72 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.1141, allocations: 7.938 kB / 0.5289 GB, free: 64 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.886e-06/0.1141, allocations: 0 / 0.5289 GB, free: 64 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.1141, allocations: 0 / 0.5289 GB, free: 64 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.157e-05/0.1141, allocations: 11.98 kB / 0.529 GB, free: 52 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002423/0.1144, allocations: 149.7 kB / 0.5291 GB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.667e-05/0.1144, allocations: 38.61 kB / 0.5291 GB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.258e-05/0.1145, allocations: 16.8 kB / 0.5292 GB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.465e-05/0.1145, allocations: 3.984 kB / 0.5292 GB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.463e-05/0.1145, allocations: 34.66 kB / 0.5292 GB, free: 15.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.001e-06/0.1145, allocations: 0 / 0.5292 GB, free: 15.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001593/0.1147, allocations: 49.62 kB / 0.5292 GB, free: 15.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.615e-05/0.1148, allocations: 55.39 kB / 0.5293 GB, free: 15.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.601e-05/0.1149, allocations: 97.86 kB / 0.5294 GB, free: 15.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.1149, allocations: 29.7 kB / 0.5294 GB, free: 15.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.764e-05/0.1149, allocations: 84.08 kB / 0.5295 GB, free: 15.39 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.048e-05/0.115, allocations: 11.91 kB / 0.5295 GB, free: 15.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.323e-05/0.115, allocations: 17.7 kB / 0.5295 GB, free: 15.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001676/0.1152, allocations: 314.8 kB / 0.5298 GB, free: 15.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.898e-05/0.1152, allocations: 11.94 kB / 0.5298 GB, free: 15.03 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.157e-06/0.1152, allocations: 0 / 0.5298 GB, free: 15.03 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.064e-05/0.1152, allocations: 20.84 kB / 0.5299 GB, free: 15.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1152, allocations: 8 kB / 0.5299 GB, free: 15 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.826e-05/0.1153, allocations: 41.7 kB / 0.5299 GB, free: 14.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.1153, allocations: 7.938 kB / 0.5299 GB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.1153, allocations: 3.984 kB / 0.5299 GB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.1153, allocations: 0 / 0.5299 GB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.295e-05/0.1154, allocations: 8 kB / 0.5299 GB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.1154, allocations: 3.938 kB / 0.5299 GB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.867e-05/0.1155, allocations: 3.938 kB / 0.5299 GB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-06/0.1155, allocations: 4 kB / 0.5299 GB, free: 14.92 MB / 350.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 8.771e-05/0.1155, allocations: 113.8 kB / 0.53 GB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.037e-06/0.1156, allocations: 7.875 kB / 0.53 GB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.5e-05/0.1156, allocations: 11.48 kB / 0.5301 GB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.1156, allocations: 0 / 0.5301 GB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.226e-06/0.1156, allocations: 4 kB / 0.5301 GB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.1156, allocations: 0 / 0.5301 GB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.1157, allocations: 153.7 kB / 0.5302 GB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1157, allocations: 0 / 0.5302 GB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.25e-05/0.1158, allocations: 8 kB / 0.5302 GB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.137e-06/0.1158, allocations: 3.938 kB / 0.5302 GB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.524e-06/0.1158, allocations: 4 kB / 0.5302 GB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.1158, allocations: 0 / 0.5302 GB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1158, allocations: 4 kB / 0.5302 GB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001295/0.1159, allocations: 81.53 kB / 0.5303 GB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.196e-05/0.116, allocations: 81.09 kB / 0.5304 GB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.393e-05/0.116, allocations: 3.938 kB / 0.5304 GB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.91e-05/0.116, allocations: 4 kB / 0.5304 GB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.431e-05/0.116, allocations: 4.094 kB / 0.5304 GB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.214e-06/0.116, allocations: 4.047 kB / 0.5304 GB, free: 14.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.495e-05/0.1161, allocations: 79.27 kB / 0.5305 GB, free: 14.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1161, allocations: 3.938 kB / 0.5305 GB, free: 14.26 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001874/0.1163, allocations: 4 kB / 0.5305 GB, free: 14.26 MB / 350.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.0004514/0.1167, allocations: 0.6086 MB / 0.5311 GB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.826e-05/0.1168, allocations: 23.92 kB / 0.5311 GB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.155e-06/0.1168, allocations: 0 / 0.5311 GB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.507e-05/0.1168, allocations: 8 kB / 0.5311 GB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001461/0.117, allocations: 4 kB / 0.5311 GB, free: 13.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.1182, allocations: 1.183 MB / 0.5323 GB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003275/0.1185, allocations: 0.6805 MB / 0.5329 GB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.626e-05/0.1185, allocations: 0 / 0.5329 GB, free: 11.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.028e-05/0.1185, allocations: 11.44 kB / 0.5329 GB, free: 11.6 MB / 350.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1185, allocations: 0 / 0.5329 GB, free: 11.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02627/0.1448, allocations: 1.122 MB / 0.534 GB, free: 10.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.862/8.007, allocations: 19.61 kB / 0.5341 GB, free: 10.53 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.861129867844284] Failed to read output from testmodel.py, exit status != 0: 8.27234377199784 8.090681188 7.97468454 Calling exit ...