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.001233/0.001233, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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 0.8825/0.8825, allocations: 177.2 MB / 199.4 MB, free: 5.93 MB / 186.7 MB " [Timeout remaining time 179] 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.001038/0.001038, allocations: 160.5 kB / 256 MB, free: 13.34 MB / 250.7 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.02176/0.02176, allocations: 6.664 MB / 319 MB, free: 26.77 MB / 266.7 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.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 445.4 MB, free: 37.67 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.34e-05/1.496e-05, allocations: 6.219 kB / 445.4 MB, free: 37.66 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.002349/0.002364, allocations: 2.716 MB / 448.1 MB, free: 34.93 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007471/0.003111, allocations: 0.6622 MB / 448.7 MB, free: 34.26 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.003245, allocations: 7.938 kB / 448.8 MB, free: 34.25 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.003391, allocations: 51.5 kB / 448.8 MB, free: 34.2 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001688/0.003559, allocations: 107.1 kB / 448.9 MB, free: 34.09 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001076/0.003667, allocations: 83.89 kB / 449 MB, free: 34.01 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002008/0.003868, allocations: 390.1 kB / 449.4 MB, free: 33.63 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001521/0.00402, allocations: 101 kB / 449.5 MB, free: 33.53 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000123/0.004143, allocations: 219.5 kB / 449.7 MB, free: 33.31 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.412e-05/0.004237, allocations: 107.7 kB / 449.8 MB, free: 33.21 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.534e-05/0.004272, allocations: 36 kB / 449.8 MB, free: 33.17 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.572e-05/0.004298, allocations: 36 kB / 449.9 MB, free: 33.14 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 3.252e-05/0.004331, allocations: 75.69 kB / 449.9 MB, free: 33.06 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.928e-05/0.00439, allocations: 127.7 kB / 450.1 MB, free: 32.94 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002271/0.004617, allocations: 426.7 kB / 450.5 MB, free: 32.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.924e-06/0.004619, allocations: 0 / 450.5 MB, free: 32.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.00462, allocations: 0 / 450.5 MB, free: 32.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.004624, allocations: 0 / 450.5 MB, free: 32.52 MB / 330.7 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.0005138/0.005138, allocations: 0.5131 MB / 451 MB, free: 31.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.571e-05/0.005174, allocations: 15.98 kB / 451 MB, free: 31.96 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.084e-05/0.005214, allocations: 70.72 kB / 451.1 MB, free: 31.88 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.982e-05/0.005254, allocations: 32.75 kB / 451.1 MB, free: 31.85 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002156/0.00547, allocations: 209.3 kB / 451.3 MB, free: 31.62 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.005484, allocations: 28.97 kB / 451.3 MB, free: 31.59 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.213e-05/0.005516, allocations: 32.36 kB / 451.4 MB, free: 31.56 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.00582, allocations: 300.3 kB / 451.7 MB, free: 31.26 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.005834, allocations: 4.141 kB / 451.7 MB, free: 31.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.005853, allocations: 15.94 kB / 451.7 MB, free: 31.24 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.005859, allocations: 4 kB / 451.7 MB, free: 31.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002372/0.006096, allocations: 214.5 kB / 451.9 MB, free: 31.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008358/0.006932, allocations: 0.88 MB / 452.8 MB, free: 30.08 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002307/0.007163, allocations: 146.5 kB / 452.9 MB, free: 29.93 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.421e-05/0.007247, allocations: 71.62 kB / 453 MB, free: 29.86 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.007263, allocations: 8 kB / 453 MB, free: 29.85 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.409e-05/0.007277, allocations: 30.56 kB / 453 MB, free: 29.81 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.022e-06/0.007278, allocations: 0 / 453 MB, free: 29.81 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.0007696/0.008048, allocations: 0.5399 MB / 453.6 MB, free: 29.24 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.761e-05/0.008065, allocations: 51.41 kB / 453.6 MB, free: 29.18 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.876e-05/0.008164, allocations: 206.5 kB / 453.8 MB, free: 28.96 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.105e-06/0.008172, allocations: 33.64 kB / 453.9 MB, free: 28.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.834e-05/0.008221, allocations: 184.5 kB / 454 MB, free: 28.74 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.203e-05/0.008243, allocations: 59.48 kB / 454.1 MB, free: 28.68 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.991e-05/0.008282, allocations: 41.66 kB / 454.1 MB, free: 28.64 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.198e-05/0.008314, allocations: 326.8 kB / 454.5 MB, free: 28.31 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.939e-05/0.008394, allocations: 71.89 kB / 454.5 MB, free: 28.24 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.758e-05/0.008481, allocations: 96.12 kB / 454.6 MB, free: 28.13 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001609/0.008642, allocations: 167 kB / 454.8 MB, free: 27.95 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.008644, allocations: 0 / 454.8 MB, free: 27.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002381/0.008882, allocations: 242.1 kB / 455 MB, free: 27.71 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.189e-05/0.008894, allocations: 8 kB / 455 MB, free: 27.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.008899, allocations: 3.984 kB / 455 MB, free: 27.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.615e-05/0.008995, allocations: 24.8 kB / 455.1 MB, free: 27.67 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.536e-05/0.009091, allocations: 47.91 kB / 455.1 MB, free: 27.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004435/0.009534, allocations: 1.271 MB / 456.4 MB, free: 26.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.868e-05/0.009593, allocations: 16.02 kB / 456.4 MB, free: 26.22 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-06/0.009601, allocations: 4 kB / 456.4 MB, free: 26.21 MB / 330.7 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 7.866e-05/0.009679, allocations: 137.8 kB / 456.5 MB, free: 26.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.079e-05/0.0097, allocations: 19.91 kB / 456.5 MB, free: 26.05 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.335e-05/0.009723, allocations: 25.89 kB / 456.6 MB, free: 26.03 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.92e-07/0.009724, allocations: 4 kB / 456.6 MB, free: 26.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.009726, allocations: 0 / 456.6 MB, free: 26.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.009729, allocations: 0 / 456.6 MB, free: 26.02 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004246/0.01015, allocations: 0.5546 MB / 457.1 MB, free: 25.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.01015, allocations: 0 / 457.1 MB, free: 25.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.863e-05/0.01025, allocations: 35.97 kB / 457.2 MB, free: 25.38 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.562e-05/0.0103, allocations: 28.91 kB / 457.2 MB, free: 25.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.01031, allocations: 7.938 kB / 457.2 MB, free: 25.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003319/0.01064, allocations: 1.26 MB / 458.5 MB, free: 23.96 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.01064, allocations: 0 / 458.5 MB, free: 23.96 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002766/0.01092, allocations: 377.5 kB / 458.8 MB, free: 23.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.476e-05/0.01093, allocations: 19.88 kB / 458.8 MB, free: 23.55 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.01094, allocations: 12 kB / 458.9 MB, free: 23.54 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.159e-05/0.01102, allocations: 15.98 kB / 458.9 MB, free: 23.52 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.557e-05/0.01105, allocations: 11.92 kB / 458.9 MB, free: 23.51 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.311e-06/0.01106, allocations: 4 kB / 458.9 MB, free: 23.5 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.914e-05/0.01112, allocations: 156.2 kB / 459 MB, free: 23.35 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01112, allocations: 0 / 459 MB, free: 23.35 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001873/0.0113, allocations: 52 kB / 459.1 MB, free: 23.3 MB / 330.7 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 0.0003798/0.01168, allocations: 0.9022 MB / 460 MB, free: 22.36 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002966/0.01198, allocations: 258.7 kB / 460.2 MB, free: 22.1 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.01198, allocations: 4.062 kB / 460.3 MB, free: 22.09 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.01209, allocations: 186.6 kB / 460.4 MB, free: 21.9 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002543/0.01235, allocations: 30.17 kB / 460.5 MB, free: 21.87 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001638/0.01399, allocations: 2.49 MB / 463 MB, free: 19.26 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.092e-05/0.01406, allocations: 150.5 kB / 463.1 MB, free: 19.09 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.198e-05/0.01411, allocations: 13.64 kB / 463.1 MB, free: 19.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.264e-05/0.01418, allocations: 80.47 kB / 463.2 MB, free: 19 MB / 330.7 MB Notification: Performance of SimCode: time 8.82e-07/0.01418, allocations: 0 / 463.2 MB, free: 19 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02098/0.03516, allocations: 5.534 MB / 468.7 MB, free: 13.62 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.127/7.162, allocations: 2.812 kB / 468.7 MB, free: 13.62 MB / 330.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_TestDCPMMachine_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.015059797093272] Failed to read output from testmodel.py, exit status != 0: 7.246372898109257 7.252436266 7.246577641 Calling exit ...