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.001454/0.001454, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.535/1.535, allocations: 230.6 MB / 252.7 MB, free: 14.25 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.001716/0.001716, allocations: 210.9 kB / 309.2 MB, free: 3.129 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.04463/0.04463, allocations: 8.917 MB / 374.6 MB, free: 6.621 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.00275/0.00275, allocations: 83.86 kB / 0.4896 GB, free: 44.24 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08885/0.0916, allocations: 55.61 MB / 0.544 GB, free: 4.531 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2581/0.3497, allocations: 24.73 MB / 0.5681 GB, free: 9.816 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01669/0.3664, allocations: 8.226 MB / 0.5761 GB, free: 9.461 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006126/0.3725, allocations: 252.1 kB / 0.5764 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01837/0.3909, allocations: 7.627 MB / 0.5838 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009948/0.4008, allocations: 2.841 MB / 0.5866 GB, free: 4.867 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005698/0.4065, allocations: 1.851 MB / 0.5884 GB, free: 3.762 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01391/0.4204, allocations: 10.13 MB / 0.5983 GB, free: 14.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02907/0.4495, allocations: 13.88 MB / 0.6119 GB, free: 5.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01035/0.4598, allocations: 5.511 MB / 0.6172 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0137/0.4735, allocations: 5.866 MB / 0.623 GB, free: 12.49 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00489/0.4784, allocations: 1.543 MB / 0.6245 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007813/0.4862, allocations: 1.894 MB / 0.6263 GB, free: 9.051 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005668/0.4919, allocations: 2.989 MB / 0.6292 GB, free: 6.055 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01317/0.5051, allocations: 4.557 MB / 0.6337 GB, free: 1.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0303/0.5354, allocations: 20.78 MB / 0.654 GB, free: 12.64 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.5354, allocations: 0 / 0.654 GB, free: 12.64 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.5354, allocations: 0 / 0.654 GB, free: 12.64 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0005518/0.5359, allocations: 3.938 kB / 0.654 GB, free: 12.63 MB / 446.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.03981/0.5758, allocations: 12.01 MB / 0.6657 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.5758, allocations: 11.98 kB / 0.6657 GB, free: 0.5195 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03255/0.6084, allocations: 5.602 MB / 0.6712 GB, free: 10.91 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01536/0.6237, allocations: 6.391 MB / 0.6774 GB, free: 4.422 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007752/0.6245, allocations: 0.7025 MB / 0.6781 GB, free: 3.719 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003439/0.6279, allocations: 0.9218 MB / 0.679 GB, free: 2.797 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04063/0.6686, allocations: 15.25 MB / 0.6939 GB, free: 3.43 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003251/0.6689, allocations: 23.83 kB / 0.6939 GB, free: 3.406 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002399/0.6713, allocations: 396 kB / 0.6943 GB, free: 3.02 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006008/0.6719, allocations: 0.5116 MB / 0.6948 GB, free: 2.504 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03219/0.7041, allocations: 13.72 MB / 0.7082 GB, free: 4.758 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08461/0.7887, allocations: 41.3 MB / 0.7485 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01508/0.8038, allocations: 8.183 MB / 0.7565 GB, free: 3.379 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004498/0.8083, allocations: 2.637 MB / 0.7591 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002988/0.8085, allocations: 90.84 kB / 0.7592 GB, free: 0.6484 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.089e-05/0.8086, allocations: 69.48 kB / 0.7593 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=372): time 6.242e-06/0.8086, allocations: 0 / 0.7593 GB, free: 0.5703 MB / 0.5294 GB Notification: Performance of matching and sorting (n=380): time 0.03246/0.8411, allocations: 14.58 MB / 0.7735 GB, free: 1.93 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.77e-05/0.8412, allocations: 90.39 kB / 0.7736 GB, free: 1.828 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.4167/1.258, allocations: 3.641 MB / 0.7771 GB, free: 163.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0007255/1.259, allocations: 87.39 kB / 0.7772 GB, free: 163.7 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002463/1.261, allocations: 4.236 MB / 0.7814 GB, free: 162.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001593/1.263, allocations: 1.368 MB / 0.7827 GB, free: 162 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001819/1.264, allocations: 1.178 MB / 0.7839 GB, free: 161.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.467e-05/1.265, allocations: 303.7 kB / 0.7841 GB, free: 161.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004217/1.269, allocations: 2.576 MB / 0.7867 GB, free: 161 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005838/1.275, allocations: 5.087 MB / 0.7916 GB, free: 156.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01019/1.285, allocations: 8.259 MB / 0.7997 GB, free: 151.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001664/1.285, allocations: 23.5 kB / 0.7997 GB, free: 151.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01622/1.301, allocations: 8.594 MB / 0.8081 GB, free: 147.6 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 9.195e-05/1.301, allocations: 40.98 kB / 0.8081 GB, free: 147.6 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000173/1.301, allocations: 90.25 kB / 0.8082 GB, free: 147.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002434/1.304, allocations: 0.8569 MB / 0.8091 GB, free: 147.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004764/1.309, allocations: 1.363 MB / 0.8104 GB, free: 147.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009788/1.318, allocations: 8.56 MB / 0.8188 GB, free: 142 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005132/1.324, allocations: 329.2 kB / 0.8191 GB, free: 141.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001226/1.325, allocations: 312.7 kB / 0.8194 GB, free: 141.8 MB / 0.545 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.005396/1.33, allocations: 3.504 MB / 0.8228 GB, free: 140.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009879/1.331, allocations: 420.5 kB / 0.8232 GB, free: 139.8 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008041/1.339, allocations: 5.813 MB / 0.8289 GB, free: 137.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/1.339, allocations: 42.75 kB / 0.8289 GB, free: 137.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/1.339, allocations: 8.75 kB / 0.8289 GB, free: 137.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.032e-05/1.339, allocations: 22.59 kB / 0.8289 GB, free: 137.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01991/1.359, allocations: 12.55 MB / 0.8412 GB, free: 129.2 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/1.359, allocations: 0 / 0.8412 GB, free: 129.2 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002275/1.361, allocations: 0.6689 MB / 0.8418 GB, free: 128.6 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001773/1.363, allocations: 0.7044 MB / 0.8425 GB, free: 127.9 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002363/1.363, allocations: 83.97 kB / 0.8426 GB, free: 127.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007495/1.371, allocations: 7.611 MB / 0.85 GB, free: 120 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/1.371, allocations: 7.938 kB / 0.8501 GB, free: 120 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01026/1.381, allocations: 8.471 MB / 0.8583 GB, free: 111.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002345/1.384, allocations: 0.8212 MB / 0.8591 GB, free: 110.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006833/1.384, allocations: 73.78 kB / 0.8592 GB, free: 110.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001747/1.386, allocations: 175.9 kB / 0.8594 GB, free: 110.4 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004731/1.386, allocations: 274.5 kB / 0.8596 GB, free: 110.1 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001911/1.387, allocations: 112 kB / 0.8597 GB, free: 110 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003071/1.39, allocations: 2.335 MB / 0.862 GB, free: 107.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/1.39, allocations: 0 / 0.862 GB, free: 107.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005245/1.395, allocations: 1.547 MB / 0.8635 GB, free: 106.1 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.0005373/1.396, allocations: 248.8 kB / 0.8638 GB, free: 105.9 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.009161/1.405, allocations: 6.318 MB / 0.8699 GB, free: 99.57 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/1.405, allocations: 0 / 0.8699 GB, free: 99.57 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006062/1.411, allocations: 2.759 MB / 0.8726 GB, free: 96.79 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005275/1.416, allocations: 0.8911 MB / 0.8735 GB, free: 95.94 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02876/1.445, allocations: 15.95 MB / 0.8891 GB, free: 79.9 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005308/1.45, allocations: 5.52 MB / 0.8945 GB, free: 74.32 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004343/1.454, allocations: 1.849 MB / 0.8963 GB, free: 72.47 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009737/1.455, allocations: 347.4 kB / 0.8966 GB, free: 72.13 MB / 0.545 GB Notification: Performance of SimCode: time 1.713e-06/1.455, allocations: 0 / 0.8966 GB, free: 72.13 MB / 0.545 GB Notification: Performance of Templates: time 0.09404/1.549, allocations: 64.83 MB / 0.9599 GB, free: 7.902 MB / 0.545 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.443997647613287] Failed to read output from testmodel.py, exit status != 0: 1.558283606544137 1.5715586430000001 1.032372953 Calling exit ...