Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Classes.MixedDeclaration.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.001404/0.001404, allocations: 105.8 kB / 16.45 MB, free: 6.445 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.429/1.429, allocations: 225.6 MB / 244.8 MB, free: 14.2 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.001644/0.001644, allocations: 199.3 kB / 299.8 MB, free: 9.844 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.04082/0.04082, allocations: 8.934 MB / 363.6 MB, free: 10.19 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.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002331/0.002331, allocations: 81.14 kB / 486 MB, free: 11.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09515/0.09748, allocations: 54.42 MB / 0.5278 GB, free: 1.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Classes.MixedDeclaration): time 0.002356/0.09984, allocations: 1.258 MB / 0.529 GB, free: 124 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 5.811e-05/0.0999, allocations: 7.922 kB / 0.529 GB, free: 116 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.683e-05/0.09993, allocations: 4 kB / 0.529 GB, free: 112 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.337e-05/0.09997, allocations: 0 / 0.529 GB, free: 112 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.296e-05/0.1, allocations: 7.938 kB / 0.529 GB, free: 104 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 1.735e-05/0.1, allocations: 4 kB / 0.529 GB, free: 100 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.25e-05/0.1001, allocations: 4 kB / 0.529 GB, free: 96 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.504e-05/0.1002, allocations: 3.984 kB / 0.529 GB, free: 92 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.025e-05/0.1002, allocations: 7.938 kB / 0.5291 GB, free: 84 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.089e-05/0.1002, allocations: 0 / 0.5291 GB, free: 84 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.021e-05/0.1002, allocations: 0 / 0.5291 GB, free: 84 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.057e-06/0.1002, allocations: 0 / 0.5291 GB, free: 84 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.294e-05/0.1003, allocations: 0 / 0.5291 GB, free: 84 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.307e-05/0.1003, allocations: 11.94 kB / 0.5291 GB, free: 72 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 5.387e-05/0.1003, allocations: 15.48 kB / 0.5291 GB, free: 60 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.1003, allocations: 4 kB / 0.5291 GB, free: 56 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.1003, allocations: 7.875 kB / 0.5291 GB, free: 48 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.566e-06/0.1004, allocations: 0 / 0.5291 GB, free: 48 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003765/0.1007, allocations: 316.2 kB / 0.5294 GB, free: 15.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.1008, allocations: 11.97 kB / 0.5294 GB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.959e-05/0.1008, allocations: 38.75 kB / 0.5294 GB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.869e-05/0.1008, allocations: 4.922 kB / 0.5294 GB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001383/0.101, allocations: 164.3 kB / 0.5296 GB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.002e-05/0.101, allocations: 384 / 0.5296 GB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.116e-05/0.101, allocations: 8.375 kB / 0.5296 GB, free: 15.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.922e-05/0.1011, allocations: 43.98 kB / 0.5297 GB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.1011, allocations: 3.938 kB / 0.5297 GB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.382e-06/0.1011, allocations: 0 / 0.5297 GB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.1011, allocations: 0 / 0.5297 GB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.721e-05/0.1011, allocations: 3.938 kB / 0.5297 GB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003782/0.1015, allocations: 483.6 kB / 0.5301 GB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001017/0.1016, allocations: 169.1 kB / 0.5303 GB, free: 14.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.742e-05/0.1016, allocations: 80.14 kB / 0.5304 GB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.526e-05/0.1017, allocations: 75.28 kB / 0.5304 GB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.332e-05/0.1017, allocations: 113.8 kB / 0.5305 GB, free: 14.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 8.71e-07/0.1017, allocations: 0 / 0.5305 GB, free: 14.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.366e-05/0.1018, allocations: 25.83 kB / 0.5306 GB, free: 14.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.49e-05/0.1019, allocations: 134.7 kB / 0.5307 GB, free: 14.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.027e-05/0.102, allocations: 105.8 kB / 0.5308 GB, free: 14.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.276e-05/0.102, allocations: 25.7 kB / 0.5308 GB, free: 14.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.453e-05/0.102, allocations: 84.09 kB / 0.5309 GB, free: 13.97 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.114e-06/0.102, allocations: 3.938 kB / 0.5309 GB, free: 13.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.894e-05/0.1021, allocations: 17.72 kB / 0.5309 GB, free: 13.94 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.1022, allocations: 318.8 kB / 0.5312 GB, free: 13.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.092e-05/0.1022, allocations: 4 kB / 0.5312 GB, free: 13.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.405e-05/0.1022, allocations: 9.719 kB / 0.5312 GB, free: 13.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.629e-05/0.1023, allocations: 21.66 kB / 0.5313 GB, free: 13.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1023, allocations: 4.062 kB / 0.5313 GB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001052/0.1024, allocations: 45.62 kB / 0.5313 GB, free: 13.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.1024, allocations: 4 kB / 0.5313 GB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1024, allocations: 0 / 0.5313 GB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.252e-05/0.1024, allocations: 0 / 0.5313 GB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.515e-05/0.1024, allocations: 7.984 kB / 0.5313 GB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.1024, allocations: 0 / 0.5313 GB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.945e-05/0.1025, allocations: 3.938 kB / 0.5313 GB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.748e-06/0.1025, allocations: 4 kB / 0.5313 GB, free: 13.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0001049/0.1026, allocations: 193.1 kB / 0.5315 GB, free: 13.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.487e-05/0.1026, allocations: 112.9 kB / 0.5316 GB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.69e-05/0.1027, allocations: 112 kB / 0.5317 GB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.667e-05/0.1028, allocations: 180.2 kB / 0.5319 GB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.527e-05/0.1029, allocations: 180.3 kB / 0.5321 GB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.831e-05/0.1029, allocations: 184.3 kB / 0.5322 GB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002546/0.1032, allocations: 405.1 kB / 0.5326 GB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.994e-05/0.1032, allocations: 109.2 kB / 0.5327 GB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.491e-05/0.1033, allocations: 104.9 kB / 0.5328 GB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-05/0.1034, allocations: 180.3 kB / 0.533 GB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.74e-05/0.1034, allocations: 180.2 kB / 0.5332 GB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.757e-05/0.1035, allocations: 188.2 kB / 0.5334 GB, free: 11.28 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.839e-05/0.1036, allocations: 176.3 kB / 0.5335 GB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001596/0.1037, allocations: 312.6 kB / 0.5338 GB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.43e-05/0.1038, allocations: 182.1 kB / 0.534 GB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.582e-05/0.1039, allocations: 184.2 kB / 0.5342 GB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-05/0.104, allocations: 105 kB / 0.5343 GB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.941e-05/0.1041, allocations: 184.2 kB / 0.5344 GB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-05/0.1041, allocations: 105 kB / 0.5345 GB, free: 9.973 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.7e-05/0.1042, allocations: 79.28 kB / 0.5346 GB, free: 9.895 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1042, allocations: 0 / 0.5346 GB, free: 9.895 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002263/0.1044, allocations: 4 kB / 0.5346 GB, free: 9.891 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 (0): * Single equations (assignments): 0 * 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.0004466/0.1049, allocations: 0.809 MB / 0.5354 GB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.503e-05/0.1049, allocations: 8 kB / 0.5354 GB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1049, allocations: 0 / 0.5354 GB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.192e-06/0.1049, allocations: 0 / 0.5354 GB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.1053, allocations: 459.8 kB / 0.5359 GB, free: 8.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.1064, allocations: 1.284 MB / 0.5371 GB, free: 7.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.1067, allocations: 0.6805 MB / 0.5378 GB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.676e-05/0.1067, allocations: 32 / 0.5378 GB, free: 6.512 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.583e-05/0.1067, allocations: 11.44 kB / 0.5378 GB, free: 6.5 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1067, allocations: 0 / 0.5378 GB, free: 6.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02251/0.1293, allocations: 0.9853 MB / 0.5388 GB, free: 5.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.793/7.922, allocations: 7.75 kB / 0.5388 GB, free: 5.578 MB / 350.1 MB " [Timeout remaining time 652] (rm -f HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; mkfifo HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe >> ../files/HanserModelica_HanserModelica.Classes.MixedDeclaration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Classes_MixedDeclaration_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Classes_MixedDeclaration.fmu > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.573283136356622] Failed to read output from testmodel.py, exit status != 0: 8.151517654303461 8.019890473 7.915900849 Calling exit ...