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.0008404/0.0008404, allocations: 80.48 kB / 19.93 MB, free: 4.621 MB / 18.57 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.8407/0.8407, allocations: 177.1 MB / 200.2 MB, free: 5.949 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.001005/0.001005, allocations: 164.6 kB / 256.7 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.02161/0.02161, allocations: 6.665 MB / 319.8 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: 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: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 446.7 MB, free: 37.12 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.306e-05/1.432e-05, allocations: 9.094 kB / 446.7 MB, free: 37.11 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.01251/0.01253, allocations: 24.78 MB / 471.5 MB, free: 12.21 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.009491/0.02202, allocations: 8.236 MB / 479.7 MB, free: 3.949 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002172/0.02419, allocations: 258.7 kB / 480 MB, free: 3.695 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0066/0.03079, allocations: 8.027 MB / 488 MB, free: 11.65 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00407/0.03486, allocations: 2.909 MB / 490.9 MB, free: 8.727 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002166/0.03702, allocations: 1.872 MB / 492.8 MB, free: 6.855 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00632/0.04334, allocations: 10.47 MB / 0.4914 GB, free: 12.35 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01148/0.05482, allocations: 13.91 MB / 0.505 GB, free: 14.29 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006184/0.06101, allocations: 8.136 MB / 0.513 GB, free: 6.145 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004333/0.06534, allocations: 5.266 MB / 0.5181 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001183/0.06652, allocations: 1.539 MB / 0.5196 GB, free: 15.32 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001761/0.06828, allocations: 1.909 MB / 0.5215 GB, free: 13.42 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001439/0.06972, allocations: 3.047 MB / 0.5244 GB, free: 10.36 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002761/0.07248, allocations: 3.926 MB / 0.5283 GB, free: 6.43 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01204/0.08453, allocations: 20.94 MB / 0.5487 GB, free: 1.434 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.08453, allocations: 0 / 0.5487 GB, free: 1.434 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.08453, allocations: 4 kB / 0.5487 GB, free: 1.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002037/0.08474, allocations: 0 / 0.5487 GB, free: 1.43 MB / 410.7 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.1445/0.2292, allocations: 11.9 MB / 0.5604 GB, free: 93.65 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.2293, allocations: 12.03 kB / 0.5604 GB, free: 93.64 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01322/0.2425, allocations: 5.618 MB / 0.5659 GB, free: 88.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007117/0.2496, allocations: 6.387 MB / 0.5721 GB, free: 81.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001982/0.2498, allocations: 0.6962 MB / 0.5728 GB, free: 80.97 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008153/0.2506, allocations: 0.9338 MB / 0.5737 GB, free: 80.05 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01465/0.2653, allocations: 15.25 MB / 0.5886 GB, free: 64.71 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000143/0.2654, allocations: 23.91 kB / 0.5886 GB, free: 64.68 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006087/0.266, allocations: 387.7 kB / 0.589 GB, free: 64.31 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002148/0.2662, allocations: 0.5155 MB / 0.5895 GB, free: 63.79 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01386/0.2801, allocations: 13.72 MB / 0.6029 GB, free: 50.05 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03358/0.3137, allocations: 41.32 MB / 0.6432 GB, free: 8.012 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007209/0.3209, allocations: 8.175 MB / 0.6512 GB, free: 1.055 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002494/0.3234, allocations: 2.637 MB / 0.6538 GB, free: 14.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001732/0.3235, allocations: 86.84 kB / 0.6539 GB, free: 14.33 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.439e-05/0.3236, allocations: 81.42 kB / 0.6539 GB, free: 14.24 MB / 426.7 MB Notification: Performance of pre-optimization done (n=372): time 5.189e-06/0.3236, allocations: 0 / 0.6539 GB, free: 14.24 MB / 426.7 MB Notification: Performance of matching and sorting (n=380): time 0.01875/0.3423, allocations: 14.58 MB / 0.6682 GB, free: 15.63 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.3424, allocations: 90.39 kB / 0.6683 GB, free: 15.53 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003625/0.346, allocations: 3.644 MB / 0.6718 GB, free: 11.88 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001434/0.3462, allocations: 85.7 kB / 0.6719 GB, free: 11.79 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001696/0.3479, allocations: 4.22 MB / 0.676 GB, free: 7.566 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006935/0.3486, allocations: 1.353 MB / 0.6773 GB, free: 6.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001247/0.3498, allocations: 1.164 MB / 0.6785 GB, free: 5.055 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.302e-05/0.3499, allocations: 301.1 kB / 0.6788 GB, free: 4.758 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002831/0.3527, allocations: 2.577 MB / 0.6813 GB, free: 2.176 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00413/0.3568, allocations: 5.083 MB / 0.6862 GB, free: 11.92 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007342/0.3642, allocations: 8.265 MB / 0.6943 GB, free: 2.473 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.476e-05/0.3642, allocations: 20 kB / 0.6943 GB, free: 2.453 MB / 458.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.009555/0.3737, allocations: 8.598 MB / 0.7027 GB, free: 9.82 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.872e-05/0.3738, allocations: 44 kB / 0.7028 GB, free: 9.777 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.681e-05/0.3739, allocations: 80 kB / 0.7029 GB, free: 9.699 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001309/0.3752, allocations: 0.8546 MB / 0.7037 GB, free: 8.844 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002488/0.3776, allocations: 1.373 MB / 0.705 GB, free: 7.469 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008053/0.3857, allocations: 8.569 MB / 0.7134 GB, free: 14.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001795/0.3875, allocations: 327.7 kB / 0.7137 GB, free: 14.38 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002795/0.3878, allocations: 308 kB / 0.714 GB, free: 14.08 MB / 490.7 MB 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.004574/0.3923, allocations: 3.509 MB / 0.7174 GB, free: 10.56 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004267/0.3928, allocations: 425.3 kB / 0.7178 GB, free: 10.14 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006787/0.3996, allocations: 5.819 MB / 0.7235 GB, free: 4.281 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.822e-05/0.3996, allocations: 40 kB / 0.7236 GB, free: 4.242 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.726e-06/0.3996, allocations: 8 kB / 0.7236 GB, free: 4.234 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-05/0.3996, allocations: 19.92 kB / 0.7236 GB, free: 4.215 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01511/0.4147, allocations: 12.55 MB / 0.7358 GB, free: 7.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.748e-06/0.4147, allocations: 7.984 kB / 0.7358 GB, free: 7.582 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001348/0.4161, allocations: 0.6708 MB / 0.7365 GB, free: 6.91 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.4172, allocations: 0.7135 MB / 0.7372 GB, free: 6.191 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001879/0.4174, allocations: 83.97 kB / 0.7373 GB, free: 6.109 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2778/0.6953, allocations: 7.594 MB / 0.7447 GB, free: 166.6 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.6953, allocations: 4.953 kB / 0.7447 GB, free: 166.6 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008526/0.7038, allocations: 8.474 MB / 0.753 GB, free: 164.6 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001294/0.7051, allocations: 0.8117 MB / 0.7538 GB, free: 164.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002951/0.7054, allocations: 73.95 kB / 0.7538 GB, free: 164.4 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009023/0.7063, allocations: 177 kB / 0.754 GB, free: 164.3 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003287/0.7066, allocations: 268.6 kB / 0.7543 GB, free: 164.3 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001395/0.7067, allocations: 113.2 kB / 0.7544 GB, free: 164.3 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.002496/0.7092, allocations: 2.337 MB / 0.7567 GB, free: 163.4 MB / 0.4949 GB Notification: Performance of sort global known variables: time 7e-08/0.7092, allocations: 0 / 0.7567 GB, free: 163.4 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.003427/0.7127, allocations: 1.55 MB / 0.7582 GB, free: 163.3 MB / 0.4949 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.0004035/0.7131, allocations: 253.2 kB / 0.7584 GB, free: 163.1 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.005725/0.7188, allocations: 6.298 MB / 0.7646 GB, free: 160.7 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.7188, allocations: 0 / 0.7646 GB, free: 160.7 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002277/0.7211, allocations: 2.754 MB / 0.7672 GB, free: 159.4 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/0.723, allocations: 0.8966 MB / 0.7681 GB, free: 158.7 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01369/0.7367, allocations: 15.6 MB / 0.7834 GB, free: 144.5 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003541/0.7403, allocations: 5.347 MB / 0.7886 GB, free: 140.4 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000684/0.7409, allocations: 390.9 kB / 0.789 GB, free: 140.1 MB / 0.4949 GB Notification: Performance of SimCode: time 6.51e-07/0.7409, allocations: 0 / 0.789 GB, free: 140.1 MB / 0.4949 GB Notification: Performance of Templates: time 0.2334/0.9743, allocations: 209.4 MB / 0.9934 GB, free: 140.6 MB / 0.5105 GB " [Timeout remaining time 659] 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: 9.67220492195338] Failed to read output from testmodel.py, exit status != 0: 0.9789005136117339 0.984740674 0.898948728 Calling exit ...