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.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.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00076/0.00076, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.285/1.285, allocations: 223.3 MB / 239.4 MB, free: 5.496 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.001188/0.001188, allocations: 180.5 kB / 290.6 MB, free: 2.164 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03295/0.03295, allocations: 8.801 MB / 350.5 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003576/0.0003578, allocations: 11.8 kB / 413.8 MB, free: 42.85 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08757/0.08795, allocations: 52.56 MB / 466.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02458/0.1126, allocations: 26.99 MB / 493.4 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0157/0.1283, allocations: 8.295 MB / 0.4899 GB, free: 9.699 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006825/0.1352, allocations: 203.3 kB / 0.4901 GB, free: 9.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007768/0.143, allocations: 1.754 MB / 0.4918 GB, free: 7.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0104/0.1534, allocations: 2.545 MB / 0.4943 GB, free: 5.188 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004909/0.1584, allocations: 1.532 MB / 0.4958 GB, free: 3.656 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01194/0.1703, allocations: 9.886 MB / 0.5054 GB, free: 9.738 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03228/0.2026, allocations: 21.36 MB / 0.5263 GB, free: 4.242 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006143/0.2088, allocations: 3.767 MB / 0.53 GB, free: 472 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2123/0.4211, allocations: 4.593 MB / 0.5345 GB, free: 19.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002781/0.424, allocations: 0.5984 MB / 0.535 GB, free: 19.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004847/0.4288, allocations: 0.9457 MB / 0.536 GB, free: 19.17 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003092/0.4319, allocations: 1.839 MB / 0.5378 GB, free: 18.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01105/0.443, allocations: 4.611 MB / 0.5423 GB, free: 17.51 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02543/0.4685, allocations: 19.37 MB / 0.5612 GB, free: 9.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.4685, allocations: 0 / 0.5612 GB, free: 9.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.4686, allocations: 0 / 0.5612 GB, free: 9.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006647/0.4692, allocations: 0 / 0.5612 GB, free: 9.832 MB / 366.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.03159/0.5008, allocations: 9.799 MB / 0.5708 GB, free: 4.82 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.197e-05/0.5009, allocations: 6.25 kB / 0.5708 GB, free: 4.82 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0314/0.5323, allocations: 5.637 MB / 0.5763 GB, free: 2.625 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01286/0.5452, allocations: 6.147 MB / 0.5823 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009053/0.5462, allocations: 0.709 MB / 0.583 GB, free: 0.8555 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004103/0.5503, allocations: 0.9309 MB / 0.5839 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04319/0.5935, allocations: 15.07 MB / 0.5986 GB, free: 5.684 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000526/0.5941, allocations: 19.8 kB / 0.5986 GB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003484/0.5976, allocations: 393.4 kB / 0.599 GB, free: 5.289 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000595/0.5982, allocations: 0.5117 MB / 0.5995 GB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04634/0.6446, allocations: 13.74 MB / 0.6129 GB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1159/0.7605, allocations: 47.99 MB / 0.6598 GB, free: 6.648 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03011/0.7906, allocations: 28.74 MB / 0.6878 GB, free: 6.18 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006374/0.797, allocations: 2.899 MB / 0.6907 GB, free: 3.27 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005132/0.7976, allocations: 237.8 kB / 0.6909 GB, free: 3.016 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.611e-05/0.7977, allocations: 77.48 kB / 0.691 GB, free: 2.93 MB / 478.1 MB Notification: Performance of pre-optimization done (n=372): time 7.184e-06/0.7977, allocations: 0 / 0.691 GB, free: 2.93 MB / 478.1 MB Notification: Performance of matching and sorting (n=380): time 0.03325/0.831, allocations: 14.72 MB / 0.7053 GB, free: 4.141 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.385e-05/0.8311, allocations: 90.39 kB / 0.7054 GB, free: 4.039 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006426/0.8375, allocations: 3.757 MB / 0.7091 GB, free: 300 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00075/0.8383, allocations: 85.7 kB / 0.7092 GB, free: 208 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2373/1.076, allocations: 4.076 MB / 0.7132 GB, free: 165.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001482/1.077, allocations: 1.315 MB / 0.7144 GB, free: 165.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009179/1.078, allocations: 474.6 kB / 0.7149 GB, free: 165.1 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.778e-05/1.078, allocations: 301.1 kB / 0.7152 GB, free: 164.8 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004342/1.083, allocations: 2.571 MB / 0.7177 GB, free: 164.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006206/1.089, allocations: 5.057 MB / 0.7226 GB, free: 161.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01089/1.1, allocations: 8.251 MB / 0.7307 GB, free: 157.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001804/1.1, allocations: 21.31 kB / 0.7307 GB, free: 157.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01403/1.114, allocations: 8.604 MB / 0.7391 GB, free: 153.8 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.184e-05/1.114, allocations: 38.78 kB / 0.7392 GB, free: 153.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001111/1.114, allocations: 82.09 kB / 0.7392 GB, free: 153.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002113/1.116, allocations: 0.8526 MB / 0.7401 GB, free: 153.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004091/1.12, allocations: 1.365 MB / 0.7414 GB, free: 153.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009255/1.13, allocations: 8.366 MB / 0.7496 GB, free: 148.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004899/1.135, allocations: 339.1 kB / 0.7499 GB, free: 148.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007385/1.135, allocations: 302.6 kB / 0.7502 GB, free: 148 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.006148/1.141, allocations: 3.506 MB / 0.7536 GB, free: 146.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008081/1.142, allocations: 409.6 kB / 0.754 GB, free: 146.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008411/1.151, allocations: 5.853 MB / 0.7597 GB, free: 141.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.115e-05/1.151, allocations: 40 kB / 0.7597 GB, free: 141.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.435e-05/1.151, allocations: 12.5 kB / 0.7598 GB, free: 141.3 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.283e-05/1.151, allocations: 19.08 kB / 0.7598 GB, free: 141.3 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02107/1.172, allocations: 14.77 MB / 0.7742 GB, free: 128.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.16e-05/1.172, allocations: 4.375 kB / 0.7742 GB, free: 128.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002313/1.174, allocations: 0.6709 MB / 0.7749 GB, free: 128 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001848/1.176, allocations: 0.7023 MB / 0.7755 GB, free: 127.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002208/1.176, allocations: 83.92 kB / 0.7756 GB, free: 127.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007357/1.184, allocations: 7.414 MB / 0.7829 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/1.184, allocations: 7.984 kB / 0.7829 GB, free: 119.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01003/1.194, allocations: 8.478 MB / 0.7911 GB, free: 111 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002089/1.196, allocations: 0.8932 MB / 0.792 GB, free: 110 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005763/1.196, allocations: 68 kB / 0.7921 GB, free: 110 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/1.198, allocations: 179.8 kB / 0.7923 GB, free: 109.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000432/1.199, allocations: 258.8 kB / 0.7925 GB, free: 109.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001903/1.199, allocations: 104 kB / 0.7926 GB, free: 109.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003764/1.203, allocations: 2.524 MB / 0.7951 GB, free: 106.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.203, allocations: 0 / 0.7951 GB, free: 106.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007231/1.21, allocations: 1.551 MB / 0.7966 GB, free: 105.4 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.0007905/1.211, allocations: 256.5 kB / 0.7968 GB, free: 105.1 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009132/1.22, allocations: 6.521 MB / 0.8032 GB, free: 98.6 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/1.22, allocations: 11.78 kB / 0.8032 GB, free: 98.59 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003787/1.224, allocations: 2.95 MB / 0.8061 GB, free: 95.61 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005761/1.229, allocations: 0.9102 MB / 0.807 GB, free: 94.72 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02578/1.255, allocations: 19.78 MB / 0.8263 GB, free: 74.87 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005402/1.261, allocations: 5.966 MB / 0.8321 GB, free: 68.86 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004739/1.265, allocations: 1.873 MB / 0.834 GB, free: 66.98 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009055/1.266, allocations: 351.4 kB / 0.8343 GB, free: 66.64 MB / 494.1 MB Notification: Performance of SimCode: time 1.262e-06/1.266, allocations: 0 / 0.8343 GB, free: 66.64 MB / 494.1 MB Notification: Performance of Templates: time 0.2806/1.547, allocations: 60.14 MB / 0.893 GB, free: 145 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: