Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.001491/0.001491, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.46/1.46, allocations: 230.6 MB / 253.4 MB, free: 8.316 MB / 206.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.001585/0.001585, allocations: 205.3 kB / 310 MB, free: 3.152 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.04121/0.04121, allocations: 8.925 MB / 375.3 MB, free: 1.898 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.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002512/0.002512, allocations: 79.88 kB / 0.4905 GB, free: 6.828 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3154/0.3179, allocations: 55.61 MB / 0.5448 GB, free: 27.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02411/0.342, allocations: 28.95 MB / 0.573 GB, free: 6.215 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01982/0.3618, allocations: 8.594 MB / 0.5814 GB, free: 32 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007811/0.3696, allocations: 255.3 kB / 0.5817 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02297/0.3926, allocations: 8.263 MB / 0.5897 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01246/0.405, allocations: 2.935 MB / 0.5926 GB, free: 8.449 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007937/0.413, allocations: 1.936 MB / 0.5945 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01745/0.4304, allocations: 10.14 MB / 0.6044 GB, free: 15.85 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03265/0.4631, allocations: 14.04 MB / 0.6181 GB, free: 1.676 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01199/0.4751, allocations: 5.506 MB / 0.6235 GB, free: 12.15 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01288/0.4879, allocations: 6.156 MB / 0.6295 GB, free: 5.977 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005409/0.4934, allocations: 1.543 MB / 0.631 GB, free: 4.434 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007574/0.5009, allocations: 1.921 MB / 0.6329 GB, free: 2.516 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005981/0.5069, allocations: 2.993 MB / 0.6358 GB, free: 15.52 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01279/0.5197, allocations: 5.852 MB / 0.6415 GB, free: 9.641 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03166/0.5514, allocations: 20.7 MB / 0.6617 GB, free: 4.875 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.803e-06/0.5514, allocations: 0 / 0.6617 GB, free: 4.875 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5514, allocations: 0 / 0.6617 GB, free: 4.875 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006496/0.552, allocations: 0 / 0.6617 GB, free: 4.875 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.04027/0.5923, allocations: 12.02 MB / 0.6735 GB, free: 8.762 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.078e-05/0.5923, allocations: 8.031 kB / 0.6735 GB, free: 8.754 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03207/0.6244, allocations: 5.594 MB / 0.6789 GB, free: 3.148 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01586/0.6403, allocations: 6.403 MB / 0.6852 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009185/0.6412, allocations: 0.7025 MB / 0.6859 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004189/0.6454, allocations: 0.9256 MB / 0.6868 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5422/1.188, allocations: 15.11 MB / 0.7015 GB, free: 103 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000449/1.188, allocations: 18.09 kB / 0.7016 GB, free: 103 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003468/1.191, allocations: 386.5 kB / 0.7019 GB, free: 102.7 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007501/1.192, allocations: 0.5181 MB / 0.7024 GB, free: 102.6 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03188/1.224, allocations: 13.78 MB / 0.7159 GB, free: 97.54 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08154/1.306, allocations: 46.54 MB / 0.7613 GB, free: 67.12 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01315/1.319, allocations: 8.276 MB / 0.7694 GB, free: 63.53 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00387/1.323, allocations: 2.645 MB / 0.772 GB, free: 60.89 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003577/1.323, allocations: 105.5 kB / 0.7721 GB, free: 60.8 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.068e-05/1.323, allocations: 73.48 kB / 0.7722 GB, free: 60.72 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 5.851e-06/1.323, allocations: 0 / 0.7722 GB, free: 60.72 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.02776/1.351, allocations: 14.67 MB / 0.7865 GB, free: 46.4 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/1.351, allocations: 94.33 kB / 0.7866 GB, free: 46.29 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005035/1.356, allocations: 3.769 MB / 0.7903 GB, free: 42.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007069/1.357, allocations: 93.64 kB / 0.7904 GB, free: 42.49 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001939/1.359, allocations: 4.225 MB / 0.7945 GB, free: 38.41 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001355/1.36, allocations: 1.374 MB / 0.7958 GB, free: 37.05 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001473/1.361, allocations: 1.176 MB / 0.797 GB, free: 35.86 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.11e-05/1.361, allocations: 305.1 kB / 0.7973 GB, free: 35.56 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003076/1.365, allocations: 2.58 MB / 0.7998 GB, free: 32.98 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004032/1.369, allocations: 5.062 MB / 0.8047 GB, free: 26.75 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008416/1.377, allocations: 8.265 MB / 0.8128 GB, free: 17.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.017e-05/1.377, allocations: 24 kB / 0.8128 GB, free: 17.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01326/1.39, allocations: 8.627 MB / 0.8212 GB, free: 8.613 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.275e-05/1.39, allocations: 40 kB / 0.8213 GB, free: 8.574 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001151/1.391, allocations: 84 kB / 0.8214 GB, free: 8.492 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002099/1.393, allocations: 0.8668 MB / 0.8222 GB, free: 7.621 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004513/1.397, allocations: 1.373 MB / 0.8236 GB, free: 6.246 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/1.408, allocations: 8.835 MB / 0.8322 GB, free: 13.19 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005669/1.413, allocations: 331.7 kB / 0.8325 GB, free: 12.87 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001485/1.415, allocations: 308 kB / 0.8328 GB, free: 12.57 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008558/1.423, allocations: 3.513 MB / 0.8362 GB, free: 9.039 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001515/1.425, allocations: 437.2 kB / 0.8366 GB, free: 8.609 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01113/1.436, allocations: 5.834 MB / 0.8423 GB, free: 2.738 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.675e-05/1.436, allocations: 43.94 kB / 0.8424 GB, free: 2.695 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/1.436, allocations: 8 kB / 0.8424 GB, free: 2.688 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.704e-05/1.436, allocations: 19.92 kB / 0.8424 GB, free: 2.668 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03126/1.467, allocations: 14.49 MB / 0.8566 GB, free: 4.156 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.735e-05/1.467, allocations: 4 kB / 0.8566 GB, free: 4.152 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00285/1.47, allocations: 0.6709 MB / 0.8572 GB, free: 3.48 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002245/1.472, allocations: 0.7328 MB / 0.8579 GB, free: 2.742 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004003/1.473, allocations: 87.97 kB / 0.858 GB, free: 2.656 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01145/1.484, allocations: 7.851 MB / 0.8657 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.88e-06/1.484, allocations: 3.938 kB / 0.8657 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01513/1.499, allocations: 8.515 MB / 0.874 GB, free: 1.965 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003161/1.503, allocations: 0.8483 MB / 0.8748 GB, free: 1.113 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00121/1.504, allocations: 71.98 kB / 0.8749 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002433/1.506, allocations: 175.9 kB / 0.8751 GB, free: 0.8711 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000569/1.507, allocations: 270.5 kB / 0.8753 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002387/1.507, allocations: 115.9 kB / 0.8754 GB, free: 0.4922 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004727/1.512, allocations: 2.528 MB / 0.8779 GB, free: 13.98 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.3e-07/1.512, allocations: 0 / 0.8779 GB, free: 13.98 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007845/1.52, allocations: 1.562 MB / 0.8794 GB, free: 12.41 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.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 (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001078/1.521, allocations: 242.5 kB / 0.8797 GB, free: 12.17 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01216/1.533, allocations: 6.318 MB / 0.8858 GB, free: 5.824 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.576e-05/1.533, allocations: 7.938 kB / 0.8858 GB, free: 5.816 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.005911/1.539, allocations: 2.766 MB / 0.8885 GB, free: 3.023 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006092/1.545, allocations: 0.97 MB / 0.8895 GB, free: 2.074 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03534/1.58, allocations: 15.71 MB / 0.9048 GB, free: 2.258 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01126/1.591, allocations: 5.794 MB / 0.9105 GB, free: 12.42 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002044/1.594, allocations: 403.3 kB / 0.9109 GB, free: 12.03 MB / 0.5763 GB Notification: Performance of SimCode: time 2.134e-06/1.594, allocations: 0 / 0.9109 GB, free: 12.03 MB / 0.5763 GB Notification: Performance of Templates: time 0.5483/2.142, allocations: 207.9 MB / 1.114 GB, free: 20.57 MB / 0.5763 GB " [Timeout remaining time 658] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 18.23272151290439] Failed to read output from testmodel.py, exit status != 0: 2.152142611099407 2.160971371 1.606791908 Calling exit ...