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.001383/0.001383, allocations: 78.84 kB / 19.01 MB, free: 2.691 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.417/1.417, allocations: 177.2 MB / 199.3 MB, free: 9.504 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.001813/0.001813, allocations: 161.4 kB / 255.8 MB, free: 0.9453 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.03839/0.03839, allocations: 6.669 MB / 318.9 MB, free: 48.51 MB / 286.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.00259/0.00259, allocations: 83.88 kB / 445.7 MB, free: 1.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2529, allocations: 55.57 MB / 0.4895 GB, free: 26.14 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.01962/0.2725, allocations: 24.75 MB / 0.5137 GB, free: 1.27 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01752/0.2901, allocations: 8.224 MB / 0.5217 GB, free: 9.023 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006307/0.2964, allocations: 250.8 kB / 0.522 GB, free: 8.777 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0205/0.3169, allocations: 8.003 MB / 0.5298 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01111/0.328, allocations: 2.85 MB / 0.5326 GB, free: 13.89 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006074/0.3341, allocations: 1.87 MB / 0.5344 GB, free: 12.03 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01453/0.3486, allocations: 10.13 MB / 0.5443 GB, free: 1.859 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02267/0.3713, allocations: 13.88 MB / 0.5578 GB, free: 3.84 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01444/0.3857, allocations: 8.389 MB / 0.566 GB, free: 11.43 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01179/0.3975, allocations: 5.874 MB / 0.5718 GB, free: 5.539 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004429/0.4019, allocations: 1.539 MB / 0.5733 GB, free: 4 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006311/0.4082, allocations: 1.894 MB / 0.5751 GB, free: 2.105 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004949/0.4132, allocations: 2.989 MB / 0.578 GB, free: 15.11 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009735/0.4229, allocations: 4.553 MB / 0.5825 GB, free: 10.54 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02795/0.4509, allocations: 20.77 MB / 0.6028 GB, free: 5.695 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.003e-05/0.4509, allocations: 4 kB / 0.6028 GB, free: 5.691 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4509, allocations: 11.88 kB / 0.6028 GB, free: 5.68 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000543/0.4514, allocations: 0 / 0.6028 GB, free: 5.68 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.4403/0.8917, allocations: 11.99 MB / 0.6145 GB, free: 94.38 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.8918, allocations: 9.188 kB / 0.6145 GB, free: 94.38 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02858/0.9204, allocations: 5.619 MB / 0.62 GB, free: 90.83 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01193/0.9323, allocations: 6.387 MB / 0.6262 GB, free: 84.8 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005128/0.9328, allocations: 0.698 MB / 0.6269 GB, free: 84.11 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002969/0.9358, allocations: 0.933 MB / 0.6278 GB, free: 83.19 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0345/0.9703, allocations: 15.25 MB / 0.6427 GB, free: 67.85 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003283/0.9706, allocations: 15.91 kB / 0.6427 GB, free: 67.83 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002004/0.9726, allocations: 399.3 kB / 0.6431 GB, free: 67.45 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003569/0.973, allocations: 0.5155 MB / 0.6436 GB, free: 66.93 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02396/0.9969, allocations: 13.72 MB / 0.657 GB, free: 53.19 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06662/1.064, allocations: 41.33 MB / 0.6974 GB, free: 11.5 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01156/1.075, allocations: 8.173 MB / 0.7054 GB, free: 4.547 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003257/1.078, allocations: 2.633 MB / 0.7079 GB, free: 1.914 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002828/1.079, allocations: 90.84 kB / 0.708 GB, free: 1.824 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.142e-05/1.079, allocations: 73.48 kB / 0.7081 GB, free: 1.742 MB / 462.1 MB Notification: Performance of pre-optimization done (n=372): time 6.863e-06/1.079, allocations: 0 / 0.7081 GB, free: 1.742 MB / 462.1 MB Notification: Performance of matching and sorting (n=380): time 0.03103/1.11, allocations: 14.58 MB / 0.7223 GB, free: 3.227 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.295e-05/1.11, allocations: 94.33 kB / 0.7224 GB, free: 3.121 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005608/1.115, allocations: 3.647 MB / 0.726 GB, free: 15.47 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005196/1.116, allocations: 85.7 kB / 0.7261 GB, free: 15.38 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003222/1.119, allocations: 4.234 MB / 0.7302 GB, free: 11.11 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001931/1.121, allocations: 1.375 MB / 0.7315 GB, free: 9.727 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002027/1.123, allocations: 1.176 MB / 0.7327 GB, free: 8.539 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001408/1.123, allocations: 305.1 kB / 0.733 GB, free: 8.238 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004258/1.128, allocations: 2.573 MB / 0.7355 GB, free: 5.66 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006714/1.134, allocations: 5.087 MB / 0.7404 GB, free: 15.4 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01231/1.147, allocations: 8.261 MB / 0.7485 GB, free: 5.957 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.059e-05/1.147, allocations: 28 kB / 0.7485 GB, free: 5.93 MB / 0.4982 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01585/1.162, allocations: 8.596 MB / 0.7569 GB, free: 13.3 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.801e-05/1.163, allocations: 43.94 kB / 0.757 GB, free: 13.26 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001174/1.163, allocations: 84 kB / 0.7571 GB, free: 13.18 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002416/1.165, allocations: 0.8524 MB / 0.7579 GB, free: 12.32 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004799/1.17, allocations: 1.365 MB / 0.7592 GB, free: 10.95 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01266/1.183, allocations: 8.574 MB / 0.7676 GB, free: 2.156 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004554/1.187, allocations: 335.6 kB / 0.7679 GB, free: 1.828 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001082/1.188, allocations: 311.9 kB / 0.7682 GB, free: 1.523 MB / 0.5138 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.006337/1.194, allocations: 3.505 MB / 0.7716 GB, free: 14 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001076/1.196, allocations: 417.3 kB / 0.772 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01074/1.206, allocations: 5.815 MB / 0.7777 GB, free: 7.73 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.999e-05/1.206, allocations: 40 kB / 0.7778 GB, free: 7.691 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/1.206, allocations: 8 kB / 0.7778 GB, free: 7.684 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.791e-05/1.206, allocations: 19.92 kB / 0.7778 GB, free: 7.664 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02528/1.232, allocations: 12.55 MB / 0.79 GB, free: 11 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/1.232, allocations: 4 kB / 0.79 GB, free: 11 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002794/1.234, allocations: 0.6674 MB / 0.7907 GB, free: 10.33 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002077/1.237, allocations: 0.7133 MB / 0.7914 GB, free: 9.609 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003205/1.237, allocations: 83.97 kB / 0.7915 GB, free: 9.527 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01074/1.248, allocations: 7.608 MB / 0.7989 GB, free: 1.719 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.018e-05/1.248, allocations: 7.969 kB / 0.7989 GB, free: 1.711 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0143/1.262, allocations: 8.475 MB / 0.8072 GB, free: 9.129 MB / 0.5607 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002555/1.264, allocations: 0.8134 MB / 0.808 GB, free: 8.312 MB / 0.5607 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005512/1.265, allocations: 76.02 kB / 0.808 GB, free: 8.238 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001758/1.267, allocations: 175.8 kB / 0.8082 GB, free: 8.066 MB / 0.5607 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005879/1.267, allocations: 270.5 kB / 0.8085 GB, free: 7.801 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002499/1.268, allocations: 112 kB / 0.8086 GB, free: 7.691 MB / 0.5607 GB Notification: Performance of sorting global known variables: time 0.004277/1.272, allocations: 2.335 MB / 0.8109 GB, free: 5.367 MB / 0.5607 GB Notification: Performance of sort global known variables: time 2.2e-07/1.272, allocations: 0 / 0.8109 GB, free: 5.367 MB / 0.5607 GB Notification: Performance of remove unused functions: time 0.006162/1.278, allocations: 1.551 MB / 0.8124 GB, free: 3.816 MB / 0.5607 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.0006856/1.279, allocations: 250.5 kB / 0.8126 GB, free: 3.562 MB / 0.5607 GB Notification: Performance of simCode: created initialization part: time 0.01379/1.293, allocations: 6.298 MB / 0.8188 GB, free: 13.24 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.401e-05/1.293, allocations: 384 / 0.8188 GB, free: 13.24 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005503/1.298, allocations: 2.761 MB / 0.8215 GB, free: 10.45 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004345/1.302, allocations: 0.8951 MB / 0.8223 GB, free: 9.574 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2543/1.557, allocations: 15.94 MB / 0.8379 GB, free: 198.2 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005872/1.563, allocations: 5.522 MB / 0.8433 GB, free: 197.8 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.004259/1.567, allocations: 1.841 MB / 0.8451 GB, free: 197.7 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009076/1.568, allocations: 355.5 kB / 0.8454 GB, free: 197.7 MB / 0.5763 GB Notification: Performance of SimCode: time 1.182e-06/1.568, allocations: 0 / 0.8454 GB, free: 197.7 MB / 0.5763 GB Notification: Performance of Templates: time 0.08789/1.656, allocations: 55.73 MB / 0.8999 GB, free: 151 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: 8.191815704107285] Failed to read output from testmodel.py, exit status != 0: 1.665158748626709 1.674605832 1.22099975 Calling exit ...