Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.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.001278/0.001278, allocations: 85.03 kB / 19.18 MB, free: 2.523 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.366/1.366, allocations: 177.1 MB / 199.4 MB, free: 8.441 MB / 190.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.001547/0.001547, allocations: 157.3 kB / 256 MB, free: 4.316 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.04113/0.04113, allocations: 6.657 MB / 319 MB, free: 5.383 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: translateModel(HanserModelica.Rotational.TestDCPMMachine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.TestDCPMMachine") translateModel(HanserModelica.Rotational.TestDCPMMachine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.TestDCPMMachine") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.954e-06/1.954e-06, allocations: 0 / 445.9 MB, free: 25.22 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.775e-05/2.971e-05, allocations: 9.031 kB / 445.9 MB, free: 25.21 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.003119/0.003149, allocations: 2.7 MB / 448.6 MB, free: 22.49 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.004306, allocations: 0.6776 MB / 449.3 MB, free: 21.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002136/0.004519, allocations: 4 kB / 449.3 MB, free: 21.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002197/0.004739, allocations: 51.5 kB / 449.3 MB, free: 21.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002365/0.004975, allocations: 103.1 kB / 449.4 MB, free: 21.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001525/0.005128, allocations: 83.89 kB / 449.5 MB, free: 21.57 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002922/0.00542, allocations: 398 kB / 449.9 MB, free: 21.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.005606, allocations: 101 kB / 450 MB, free: 21.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001962/0.005802, allocations: 215.6 kB / 450.2 MB, free: 20.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.005972, allocations: 115.6 kB / 450.3 MB, free: 20.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.798e-05/0.00602, allocations: 36 kB / 450.3 MB, free: 20.72 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.102e-05/0.006071, allocations: 36 kB / 450.4 MB, free: 20.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.882e-05/0.006119, allocations: 75.73 kB / 450.5 MB, free: 20.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001011/0.006221, allocations: 115.8 kB / 450.6 MB, free: 20.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003435/0.006564, allocations: 426.7 kB / 451 MB, free: 20.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.425e-06/0.006566, allocations: 0 / 451 MB, free: 20.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.006568, allocations: 0 / 451 MB, free: 20.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.006573, allocations: 0 / 451 MB, free: 20.08 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0007787/0.007352, allocations: 0.5247 MB / 451.5 MB, free: 19.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.456e-05/0.007386, allocations: 8.031 kB / 451.5 MB, free: 19.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.017e-05/0.007456, allocations: 32.75 kB / 451.5 MB, free: 19.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00031/0.007766, allocations: 213.3 kB / 451.8 MB, free: 19.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.007789, allocations: 24.97 kB / 451.8 MB, free: 19.23 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.815e-05/0.007837, allocations: 32.38 kB / 451.8 MB, free: 19.2 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004669/0.008304, allocations: 296.3 kB / 452.1 MB, free: 18.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.341e-05/0.008328, allocations: 8.141 kB / 452.1 MB, free: 18.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.94e-05/0.008357, allocations: 12.12 kB / 452.1 MB, free: 18.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.008364, allocations: 8 kB / 452.1 MB, free: 18.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004024/0.008767, allocations: 210.5 kB / 452.3 MB, free: 18.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.00998, allocations: 0.8299 MB / 453.2 MB, free: 17.78 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003557/0.01034, allocations: 146.5 kB / 453.3 MB, free: 17.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001563/0.01049, allocations: 72.83 kB / 453.4 MB, free: 17.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.01051, allocations: 4.281 kB / 453.4 MB, free: 17.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.693e-05/0.01053, allocations: 30.56 kB / 453.4 MB, free: 17.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.754e-06/0.01053, allocations: 3.984 kB / 453.4 MB, free: 17.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=16): time 0.001289/0.01182, allocations: 0.5469 MB / 454 MB, free: 16.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.3e-05/0.01184, allocations: 55.41 kB / 454 MB, free: 16.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001361/0.01198, allocations: 183.5 kB / 454.2 MB, free: 16.67 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.01199, allocations: 29.7 kB / 454.2 MB, free: 16.63 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.004e-05/0.01206, allocations: 188.4 kB / 454.4 MB, free: 16.45 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.125e-05/0.0121, allocations: 59.48 kB / 454.5 MB, free: 16.39 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.668e-05/0.01215, allocations: 37.7 kB / 454.5 MB, free: 16.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 4.791e-05/0.0122, allocations: 322.8 kB / 454.8 MB, free: 16.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.01235, allocations: 63.91 kB / 454.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.01251, allocations: 103.5 kB / 455 MB, free: 15.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002862/0.01279, allocations: 164.2 kB / 455.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.01279, allocations: 0 / 455.1 MB, free: 15.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004147/0.01321, allocations: 243.8 kB / 455.4 MB, free: 15.42 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.602e-05/0.01322, allocations: 7.984 kB / 455.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.443e-06/0.01323, allocations: 4 kB / 455.4 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001466/0.01338, allocations: 12.86 kB / 455.4 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001852/0.01356, allocations: 51.91 kB / 455.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006943/0.01426, allocations: 1.248 MB / 456.7 MB, free: 13.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.01438, allocations: 12.02 kB / 456.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.502e-05/0.0144, allocations: 8 kB / 456.7 MB, free: 13.97 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.01451, allocations: 141.8 kB / 456.9 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.001e-05/0.01455, allocations: 19.91 kB / 456.9 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.137e-05/0.01459, allocations: 17.81 kB / 456.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.01459, allocations: 4 kB / 456.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.0146, allocations: 4.094 kB / 456.9 MB, free: 13.78 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.0146, allocations: 7.922 kB / 456.9 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006686/0.01527, allocations: 0.5044 MB / 457.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.01527, allocations: 0 / 457.4 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001941/0.01547, allocations: 39.91 kB / 457.5 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.755e-05/0.01553, allocations: 24.84 kB / 457.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.01555, allocations: 64 / 457.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005694/0.01612, allocations: 1.244 MB / 458.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.01612, allocations: 4.031 kB / 458.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005008/0.01662, allocations: 364.7 kB / 459.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.253e-05/0.01664, allocations: 20.06 kB / 459.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.01667, allocations: 4.047 kB / 459.1 MB, free: 11.4 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.01682, allocations: 11.98 kB / 459.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.588e-05/0.01687, allocations: 23.84 kB / 459.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.01688, allocations: 8 kB / 459.2 MB, free: 11.36 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.827e-05/0.01696, allocations: 129.2 kB / 459.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.01696, allocations: 0 / 459.3 MB, free: 11.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000308/0.01726, allocations: 56 kB / 459.3 MB, free: 11.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,machine.inertia.w,load.phi) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 9.494e-05/0.01736, allocations: 107.2 kB / 459.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005157/0.01787, allocations: 262.5 kB / 459.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.01788, allocations: 3.938 kB / 459.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002439/0.01812, allocations: 186.9 kB / 459.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.0185, allocations: 43.97 kB / 459.9 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009624/0.01947, allocations: 0.5926 MB / 460.5 MB, free: 9.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.789e-05/0.01956, allocations: 146.5 kB / 460.7 MB, free: 9.766 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.831e-05/0.01963, allocations: 17.64 kB / 460.7 MB, free: 9.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.661e-05/0.01968, allocations: 16.5 kB / 460.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.01968, allocations: 0 / 460.7 MB, free: 9.734 MB / 334.1 MB Notification: Performance of Templates: time 0.005453/0.02513, allocations: 2.203 MB / 462.9 MB, free: 7.566 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & ./HanserModelica_HanserModelica.Rotational.TestDCPMMachine -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.453939229249954] Failed to read output from testmodel.py, exit status != 0: 0.032084446400403976 0.044919302 0.035247913 Calling exit ...