Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") translateModel(HanserModelica.SynchronousMachines.SMR_MTPA,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007854/0.007854, allocations: 103.7 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 222.9 MB / 239.4 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 184.5 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03414/0.03414, allocations: 8.794 MB / 348.6 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 79.88 kB / 463.9 MB, free: 13.05 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1047, allocations: 51.56 MB / 0.5034 GB, free: 9.449 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_MTPA): time 0.2572/0.3619, allocations: 27.65 MB / 0.5304 GB, free: 4.938 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01746/0.3795, allocations: 8.021 MB / 0.5382 GB, free: 4.832 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006397/0.3859, allocations: 207.4 kB / 0.5384 GB, free: 4.832 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01789/0.4039, allocations: 7.919 MB / 0.5462 GB, free: 3.656 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009715/0.4136, allocations: 2.705 MB / 0.5488 GB, free: 2.883 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005787/0.4194, allocations: 1.816 MB / 0.5506 GB, free: 2.695 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01354/0.433, allocations: 9.688 MB / 0.5601 GB, free: 14.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03183/0.4649, allocations: 21.2 MB / 0.5808 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01013/0.475, allocations: 5.265 MB / 0.5859 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01124/0.4863, allocations: 5.929 MB / 0.5917 GB, free: 5.641 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004097/0.4904, allocations: 1.516 MB / 0.5932 GB, free: 4.125 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006159/0.4966, allocations: 1.87 MB / 0.595 GB, free: 2.262 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005921/0.5026, allocations: 2.937 MB / 0.5979 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0122/0.5148, allocations: 5.723 MB / 0.6035 GB, free: 9.656 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02465/0.5395, allocations: 20.28 MB / 0.6233 GB, free: 5.711 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.659e-06/0.5395, allocations: 4 kB / 0.6233 GB, free: 5.707 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.5395, allocations: 0 / 0.6233 GB, free: 5.707 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006026/0.5402, allocations: 0 / 0.6233 GB, free: 5.707 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2552 * Number of variables: 2552 Notification: Performance of Generate backend data structure: time 0.03966/0.5798, allocations: 11.59 MB / 0.6346 GB, free: 10.11 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.177e-05/0.5799, allocations: 8.031 kB / 0.6346 GB, free: 10.11 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03177/0.6117, allocations: 5.593 MB / 0.64 GB, free: 4.559 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01481/0.6265, allocations: 6.182 MB / 0.6461 GB, free: 14.36 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009722/0.6276, allocations: 0.6908 MB / 0.6468 GB, free: 13.68 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003906/0.6315, allocations: 0.9105 MB / 0.6476 GB, free: 12.78 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04393/0.6754, allocations: 14.85 MB / 0.6622 GB, free: 13.91 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005881/0.6761, allocations: 19.89 kB / 0.6622 GB, free: 13.89 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004018/0.6801, allocations: 388.1 kB / 0.6625 GB, free: 13.52 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006315/0.6808, allocations: 0.5074 MB / 0.663 GB, free: 13.01 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03441/0.7152, allocations: 13.58 MB / 0.6763 GB, free: 15.43 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08524/0.8005, allocations: 46.09 MB / 0.7213 GB, free: 0.5117 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3972/1.198, allocations: 28.3 MB / 0.7489 GB, free: 121.9 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006418/1.204, allocations: 3.023 MB / 0.7519 GB, free: 121.9 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000431/1.205, allocations: 239.3 kB / 0.7521 GB, free: 121.7 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.961e-05/1.205, allocations: 73.25 kB / 0.7522 GB, free: 121.7 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=375): time 6.351e-06/1.205, allocations: 0 / 0.7522 GB, free: 121.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=382): time 0.03203/1.237, allocations: 14.64 MB / 0.7665 GB, free: 117.5 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.66e-05/1.237, allocations: 89.56 kB / 0.7666 GB, free: 117.4 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005388/1.242, allocations: 3.483 MB / 0.77 GB, free: 116.1 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0007069/1.243, allocations: 89.52 kB / 0.7701 GB, free: 116 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002809/1.246, allocations: 3.945 MB / 0.7739 GB, free: 113.1 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001518/1.247, allocations: 1.315 MB / 0.7752 GB, free: 112.1 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001744/1.249, allocations: 1.141 MB / 0.7763 GB, free: 111.5 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.026e-05/1.249, allocations: 305.1 kB / 0.7766 GB, free: 111.2 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003196/1.252, allocations: 2.55 MB / 0.7791 GB, free: 110.2 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004743/1.257, allocations: 5.013 MB / 0.784 GB, free: 106.1 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008297/1.265, allocations: 8.218 MB / 0.792 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-05/1.266, allocations: 23.72 kB / 0.792 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of matching and sorting (n=755) (initialization): time 0.01304/1.279, allocations: 8.494 MB / 0.8003 GB, free: 96.79 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.178e-05/1.279, allocations: 39.38 kB / 0.8004 GB, free: 96.79 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001318/1.279, allocations: 86.72 kB / 0.8005 GB, free: 96.79 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002101/1.281, allocations: 0.8497 MB / 0.8013 GB, free: 96.17 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004327/1.285, allocations: 1.345 MB / 0.8026 GB, free: 95.01 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009239/1.295, allocations: 7.664 MB / 0.8101 GB, free: 87.66 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004846/1.299, allocations: 327.3 kB / 0.8104 GB, free: 87.34 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009903/1.3, allocations: 300 kB / 0.8107 GB, free: 87.05 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (708): * Single equations (assignments): 707 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007609/1.308, allocations: 3.478 MB / 0.8141 GB, free: 83.56 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001344/1.309, allocations: 391.2 kB / 0.8145 GB, free: 83.17 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008811/1.318, allocations: 5.855 MB / 0.8202 GB, free: 77.29 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.411e-05/1.318, allocations: 36 kB / 0.8202 GB, free: 77.25 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/1.318, allocations: 11.98 kB / 0.8202 GB, free: 77.24 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.739e-05/1.318, allocations: 19.94 kB / 0.8202 GB, free: 77.22 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02337/1.342, allocations: 14.49 MB / 0.8344 GB, free: 62.68 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.928e-05/1.342, allocations: 4 kB / 0.8344 GB, free: 62.68 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002416/1.344, allocations: 0.6698 MB / 0.835 GB, free: 62.01 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001936/1.346, allocations: 0.7053 MB / 0.8357 GB, free: 61.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002499/1.346, allocations: 83.98 kB / 0.8358 GB, free: 61.22 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007592/1.354, allocations: 6.699 MB / 0.8424 GB, free: 54.38 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/1.354, allocations: 11.88 kB / 0.8424 GB, free: 54.37 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01077/1.365, allocations: 8.55 MB / 0.8507 GB, free: 45.69 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002258/1.367, allocations: 0.863 MB / 0.8516 GB, free: 44.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006917/1.368, allocations: 73.25 kB / 0.8516 GB, free: 44.73 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001847/1.37, allocations: 180.5 kB / 0.8518 GB, free: 44.56 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000447/1.37, allocations: 258.7 kB / 0.852 GB, free: 44.3 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000209/1.37, allocations: 112 kB / 0.8522 GB, free: 44.2 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.002885/1.373, allocations: 2.33 MB / 0.8544 GB, free: 41.88 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.31e-07/1.373, allocations: 0 / 0.8544 GB, free: 41.88 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005519/1.379, allocations: 1.509 MB / 0.8559 GB, free: 40.37 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 1 (smr.phiMechanical) * 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 (365): * Single equations (assignments): 364 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(8,38,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006534/1.38, allocations: 265 kB / 0.8562 GB, free: 40.11 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008787/1.388, allocations: 6.426 MB / 0.8624 GB, free: 33.69 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/1.388, allocations: 0.875 kB / 0.8624 GB, free: 33.69 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004054/1.392, allocations: 2.88 MB / 0.8652 GB, free: 30.8 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005474/1.398, allocations: 0.9077 MB / 0.8661 GB, free: 29.92 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02652/1.424, allocations: 15.33 MB / 0.8811 GB, free: 14.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005422/1.43, allocations: 5.902 MB / 0.8869 GB, free: 8.559 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.004267/1.434, allocations: 1.86 MB / 0.8887 GB, free: 6.691 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009748/1.435, allocations: 339.3 kB / 0.889 GB, free: 6.359 MB / 0.5138 GB Notification: Performance of SimCode: time 7.21e-07/1.435, allocations: 0 / 0.889 GB, free: 6.359 MB / 0.5138 GB Notification: Performance of Templates: time 0.3758/1.811, allocations: 57.6 MB / 0.9453 GB, free: 162 MB / 0.545 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_MTPA.pipe 2>&1)