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.001293/0.001293, allocations: 79.28 kB / 19.18 MB, free: 2.52 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.378/1.378, allocations: 177.2 MB / 199.5 MB, free: 8.434 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.001661/0.001661, allocations: 161.9 kB / 256 MB, free: 4.301 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.04137/0.04137, allocations: 6.66 MB / 319 MB, free: 5.363 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: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 445.9 MB, free: 25.14 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.45e-05/2.58e-05, allocations: 4.812 kB / 445.9 MB, free: 25.14 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.01913/0.01915, allocations: 24.78 MB / 470.7 MB, free: 244 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01822/0.03737, allocations: 8.232 MB / 479 MB, free: 7.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005251/0.04263, allocations: 250.8 kB / 479.2 MB, free: 7.734 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1858/0.2285, allocations: 8.019 MB / 487.2 MB, free: 16.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008582/0.2371, allocations: 2.92 MB / 490.1 MB, free: 16.45 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004253/0.2413, allocations: 1.862 MB / 492 MB, free: 16.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01073/0.252, allocations: 10.46 MB / 0.4907 GB, free: 13.89 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01702/0.2691, allocations: 13.91 MB / 0.5043 GB, free: 6.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01217/0.2812, allocations: 8.142 MB / 0.5122 GB, free: 2.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009302/0.2905, allocations: 5.264 MB / 0.5174 GB, free: 14.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003923/0.2945, allocations: 1.539 MB / 0.5189 GB, free: 13.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006286/0.3007, allocations: 1.91 MB / 0.5207 GB, free: 11.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004789/0.3055, allocations: 3.046 MB / 0.5237 GB, free: 8.574 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009859/0.3154, allocations: 3.917 MB / 0.5275 GB, free: 4.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02832/0.3437, allocations: 20.94 MB / 0.548 GB, free: 448 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.3437, allocations: 0 / 0.548 GB, free: 448 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.3437, allocations: 0 / 0.548 GB, free: 448 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005932/0.3443, allocations: 0 / 0.548 GB, free: 448 kB / 382.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.03717/0.3815, allocations: 11.91 MB / 0.5596 GB, free: 4.523 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.3815, allocations: 11.98 kB / 0.5596 GB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03345/0.415, allocations: 5.612 MB / 0.5651 GB, free: 14.95 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01592/0.4309, allocations: 6.391 MB / 0.5713 GB, free: 8.754 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000902/0.4318, allocations: 0.7027 MB / 0.572 GB, free: 8.059 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004077/0.4359, allocations: 0.9299 MB / 0.5729 GB, free: 7.141 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03362/0.4695, allocations: 15.26 MB / 0.5878 GB, free: 7.805 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002068/0.4697, allocations: 27.89 kB / 0.5879 GB, free: 7.777 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001169/0.4709, allocations: 388.4 kB / 0.5882 GB, free: 7.406 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005887/0.4715, allocations: 0.5155 MB / 0.5887 GB, free: 6.887 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02977/0.5012, allocations: 13.71 MB / 0.6021 GB, free: 9.16 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07891/0.5802, allocations: 41.33 MB / 0.6425 GB, free: 15.62 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01591/0.5961, allocations: 8.168 MB / 0.6505 GB, free: 8.676 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0045/0.6006, allocations: 2.637 MB / 0.653 GB, free: 6.039 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003126/0.6009, allocations: 86.84 kB / 0.6531 GB, free: 5.953 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001269/0.601, allocations: 73.48 kB / 0.6532 GB, free: 5.871 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 6.242e-06/0.601, allocations: 3.938 kB / 0.6532 GB, free: 5.867 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.3226/0.9236, allocations: 14.59 MB / 0.6674 GB, free: 157 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.56e-05/0.9236, allocations: 91.48 kB / 0.6675 GB, free: 156.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005094/0.9287, allocations: 3.643 MB / 0.6711 GB, free: 155.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000335/0.929, allocations: 87.33 kB / 0.6712 GB, free: 155.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002107/0.9312, allocations: 4.225 MB / 0.6753 GB, free: 152.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009841/0.9321, allocations: 1.358 MB / 0.6766 GB, free: 151.7 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001492/0.9336, allocations: 1.166 MB / 0.6778 GB, free: 151.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.859e-05/0.9337, allocations: 305.5 kB / 0.6781 GB, free: 150.9 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003343/0.937, allocations: 2.572 MB / 0.6806 GB, free: 149.9 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003941/0.9409, allocations: 5.088 MB / 0.6855 GB, free: 145.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00751/0.9485, allocations: 8.259 MB / 0.6936 GB, free: 140 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-05/0.9485, allocations: 23.09 kB / 0.6936 GB, free: 140 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01254/0.9611, allocations: 8.595 MB / 0.702 GB, free: 136 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.347e-05/0.9611, allocations: 40 kB / 0.7021 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.384e-05/0.9612, allocations: 83.5 kB / 0.7021 GB, free: 135.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002143/0.9633, allocations: 0.8665 MB / 0.703 GB, free: 135.2 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0043/0.9676, allocations: 1.363 MB / 0.7043 GB, free: 134.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009018/0.9767, allocations: 8.555 MB / 0.7127 GB, free: 126.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004/0.9807, allocations: 329.8 kB / 0.713 GB, free: 125.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004121/0.9811, allocations: 311.2 kB / 0.7133 GB, free: 125.6 MB / 494.1 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.004474/0.9856, allocations: 3.504 MB / 0.7167 GB, free: 122.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008009/0.9864, allocations: 425.2 kB / 0.7171 GB, free: 122.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007816/0.9942, allocations: 5.813 MB / 0.7228 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.961e-05/0.9942, allocations: 40 kB / 0.7228 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.9942, allocations: 8 kB / 0.7228 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.137e-05/0.9942, allocations: 23.86 kB / 0.7229 GB, free: 116.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01671/1.011, allocations: 12.54 MB / 0.7351 GB, free: 104 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/1.011, allocations: 4 kB / 0.7351 GB, free: 104 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002521/1.013, allocations: 0.6709 MB / 0.7358 GB, free: 103.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001779/1.015, allocations: 0.7099 MB / 0.7365 GB, free: 102.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001984/1.015, allocations: 79.98 kB / 0.7365 GB, free: 102.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007612/1.023, allocations: 7.606 MB / 0.744 GB, free: 94.76 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.038e-06/1.023, allocations: 8.484 kB / 0.744 GB, free: 94.75 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/1.033, allocations: 8.472 MB / 0.7522 GB, free: 86.18 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002344/1.036, allocations: 0.8095 MB / 0.753 GB, free: 85.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007384/1.037, allocations: 78.8 kB / 0.7531 GB, free: 85.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001797/1.038, allocations: 167.8 kB / 0.7533 GB, free: 85.12 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004999/1.039, allocations: 270.5 kB / 0.7535 GB, free: 84.86 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002179/1.039, allocations: 116 kB / 0.7536 GB, free: 84.75 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003017/1.042, allocations: 2.339 MB / 0.7559 GB, free: 82.42 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/1.042, allocations: 0 / 0.7559 GB, free: 82.42 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004803/1.047, allocations: 1.547 MB / 0.7574 GB, free: 80.87 MB / 494.1 MB 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.0005216/1.047, allocations: 252.8 kB / 0.7577 GB, free: 80.62 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00841/1.056, allocations: 6.308 MB / 0.7638 GB, free: 74.29 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.57e-06/1.056, allocations: 0 / 0.7638 GB, free: 74.29 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003514/1.059, allocations: 2.743 MB / 0.7665 GB, free: 71.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00413/1.063, allocations: 0.9084 MB / 0.7674 GB, free: 70.64 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02077/1.084, allocations: 15.86 MB / 0.7829 GB, free: 54.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004599/1.089, allocations: 5.524 MB / 0.7883 GB, free: 49.12 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003866/1.093, allocations: 1.833 MB / 0.7901 GB, free: 47.28 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000931/1.094, allocations: 352.4 kB / 0.7904 GB, free: 46.93 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/1.094, allocations: 0 / 0.7904 GB, free: 46.93 MB / 494.1 MB Notification: Performance of Templates: time 0.09036/1.184, allocations: 55.37 MB / 0.8445 GB, free: 8.254 MB / 0.4982 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: 7.699754785746336] Failed to read output from testmodel.py, exit status != 0: 1.1927785351872444 1.361553248 1.01501715 Calling exit ...