Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.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.0008915/0.0008915, 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.9281/0.9281, allocations: 177.2 MB / 199.4 MB, free: 5.938 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.001066/0.001066, allocations: 152.6 kB / 256 MB, free: 13.35 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.02641/0.02641, allocations: 6.656 MB / 319 MB, free: 26.75 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.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.552e-06/1.552e-06, allocations: 0 / 445.4 MB, free: 37.61 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.952e-05/2.107e-05, allocations: 2.281 kB / 445.4 MB, free: 37.6 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.00903/0.009051, allocations: 14.32 MB / 459.8 MB, free: 23.21 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.008817/0.01787, allocations: 5.286 MB / 465 MB, free: 17.91 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002905/0.02077, allocations: 119.3 kB / 465.2 MB, free: 17.79 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003637/0.02441, allocations: 1.219 MB / 466.4 MB, free: 16.57 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004728/0.02914, allocations: 1.626 MB / 468 MB, free: 14.93 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002354/0.03149, allocations: 1.012 MB / 469 MB, free: 13.92 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004884/0.03638, allocations: 4.977 MB / 474 MB, free: 8.922 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002285/0.03866, allocations: 1.913 MB / 475.9 MB, free: 6.945 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004336/0.043, allocations: 3.193 MB / 479.1 MB, free: 3.746 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002857/0.04585, allocations: 2.061 MB / 481.2 MB, free: 1.68 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009433/0.0468, allocations: 0.5664 MB / 481.7 MB, free: 1.113 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001485/0.04828, allocations: 0.7925 MB / 482.5 MB, free: 328 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009348/0.04922, allocations: 1.324 MB / 483.8 MB, free: 14.99 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002061/0.05128, allocations: 1.672 MB / 485.5 MB, free: 13.31 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006317/0.05759, allocations: 7.607 MB / 493.1 MB, free: 5.684 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.631e-06/0.0576, allocations: 0 / 493.1 MB, free: 5.684 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.0576, allocations: 0 / 493.1 MB, free: 5.684 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001864/0.05779, allocations: 0 / 493.1 MB, free: 5.684 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.009688/0.06748, allocations: 5.007 MB / 498.1 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.06752, allocations: 8.031 kB / 498.1 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009633/0.06849, allocations: 0.5609 MB / 498.7 MB, free: 40 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002955/0.07144, allocations: 0.9769 MB / 499.7 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004797/0.07624, allocations: 2.786 MB / 0.4907 GB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000233/0.07647, allocations: 275.8 kB / 0.4909 GB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009945/0.07747, allocations: 376.3 kB / 0.4913 GB, free: 11.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009073/0.08654, allocations: 4.932 MB / 0.4961 GB, free: 6.578 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-05/0.08661, allocations: 7.938 kB / 0.4961 GB, free: 6.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003767/0.08699, allocations: 148 kB / 0.4963 GB, free: 6.426 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001106/0.0871, allocations: 151.4 kB / 0.4964 GB, free: 6.277 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005993/0.09309, allocations: 4.054 MB / 0.5004 GB, free: 2.219 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01854/0.1116, allocations: 13.81 MB / 0.5139 GB, free: 3.992 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003276/0.1149, allocations: 2.735 MB / 0.5165 GB, free: 1.379 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002414/0.1173, allocations: 1.826 MB / 0.5183 GB, free: 15.55 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005636/0.123, allocations: 3.687 MB / 0.5219 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.123, allocations: 51.88 kB / 0.522 GB, free: 11.76 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 3.126e-06/0.123, allocations: 0 / 0.522 GB, free: 11.76 MB / 394.7 MB Notification: Performance of matching and sorting (n=159): time 0.009348/0.1323, allocations: 6.222 MB / 0.528 GB, free: 5.496 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.1324, allocations: 68.72 kB / 0.5281 GB, free: 5.418 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00282/0.1352, allocations: 2.255 MB / 0.5303 GB, free: 3.133 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 9.188e-05/0.1353, allocations: 57.7 kB / 0.5304 GB, free: 3.07 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009574/0.1363, allocations: 1.787 MB / 0.5321 GB, free: 1.266 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003417/0.1366, allocations: 0.5733 MB / 0.5327 GB, free: 0.6875 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004225/0.137, allocations: 408.1 kB / 0.533 GB, free: 288 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.151e-05/0.1371, allocations: 305.1 kB / 0.5333 GB, free: 15.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009709/0.1381, allocations: 0.8399 MB / 0.5342 GB, free: 15.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001267/0.1393, allocations: 1.626 MB / 0.5357 GB, free: 13.15 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002861/0.1422, allocations: 2.612 MB / 0.5383 GB, free: 10.2 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-05/0.1422, allocations: 4 kB / 0.5383 GB, free: 10.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.004155/0.1464, allocations: 3.057 MB / 0.5413 GB, free: 7.121 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.1464, allocations: 16 kB / 0.5413 GB, free: 7.105 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.062e-05/0.1464, allocations: 24 kB / 0.5413 GB, free: 7.082 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005997/0.147, allocations: 342.4 kB / 0.5417 GB, free: 6.738 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009843/0.148, allocations: 0.4953 MB / 0.5421 GB, free: 6.242 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003852/0.1519, allocations: 5.022 MB / 0.547 GB, free: 0.9961 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001385/0.1533, allocations: 112 kB / 0.5471 GB, free: 0.8867 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001302/0.1534, allocations: 104 kB / 0.5472 GB, free: 0.7852 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 258 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,13,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001716/0.1551, allocations: 1.122 MB / 0.5483 GB, free: 15.65 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003879/0.1555, allocations: 250.4 kB / 0.5486 GB, free: 15.41 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00311/0.1586, allocations: 2.317 MB / 0.5508 GB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.1586, allocations: 12 kB / 0.5509 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.046e-05/0.1586, allocations: 8 kB / 0.5509 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.1587, allocations: 7.969 kB / 0.5509 GB, free: 13.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007216/0.1659, allocations: 5.295 MB / 0.556 GB, free: 7.656 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.822e-06/0.1659, allocations: 7.938 kB / 0.556 GB, free: 7.648 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006739/0.1666, allocations: 271.8 kB / 0.5563 GB, free: 7.383 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006997/0.1673, allocations: 362.2 kB / 0.5567 GB, free: 7.02 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001391/0.1674, allocations: 39.98 kB / 0.5567 GB, free: 6.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1863/0.3537, allocations: 7.032 MB / 0.5636 GB, free: 94.26 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.3537, allocations: 3.75 kB / 0.5636 GB, free: 94.26 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003889/0.3576, allocations: 3.439 MB / 0.5669 GB, free: 94.01 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007835/0.3583, allocations: 446 kB / 0.5673 GB, free: 94.01 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001828/0.3585, allocations: 35.06 kB / 0.5674 GB, free: 94.01 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005564/0.3591, allocations: 65.41 kB / 0.5674 GB, free: 94.01 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001887/0.3593, allocations: 119.7 kB / 0.5676 GB, free: 94.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.531e-05/0.3593, allocations: 47.2 kB / 0.5676 GB, free: 94.01 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001446/0.3608, allocations: 1.494 MB / 0.5691 GB, free: 93.87 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3608, allocations: 0.5938 kB / 0.5691 GB, free: 93.87 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001537/0.3623, allocations: 0.6583 MB / 0.5697 GB, free: 93.87 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003593/0.3659, allocations: 4.052 MB / 0.5737 GB, free: 93.08 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002634/0.3685, allocations: 2.339 MB / 0.5759 GB, free: 92.82 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.3685, allocations: 3.812 kB / 0.5759 GB, free: 92.82 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00133/0.3699, allocations: 1.357 MB / 0.5773 GB, free: 92.2 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/0.3716, allocations: 0.5816 MB / 0.5778 GB, free: 92.03 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02875/0.4004, allocations: 23.76 MB / 0.601 GB, free: 73.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001388/0.4017, allocations: 1.988 MB / 0.603 GB, free: 71.64 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001255/0.403, allocations: 0.5122 MB / 0.6035 GB, free: 71.12 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001017/0.404, allocations: 1.371 MB / 0.6048 GB, free: 69.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.393e-06/0.404, allocations: 0 / 0.6048 GB, free: 69.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08003/0.484, allocations: 61.72 MB / 0.6651 GB, free: 8.684 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.906/9.39, allocations: 3.125 kB / 0.6651 GB, free: 8.684 MB / 426.7 MB " [Timeout remaining time 650] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1_fmu --startTime=0 --stopTime=0.3 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.556338251568377] Failed to read output from testmodel.py, exit status != 0: 9.507018189877272 9.515448575 9.456011054 Calling exit ...