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.004591/0.004591, allocations: 97.59 kB / 15.73 MB, free: 6.059 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.344/1.344, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001613/0.001613, allocations: 192.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03579/0.03579, allocations: 8.798 MB / 348.6 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001595/0.001595, allocations: 83.86 kB / 463.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1099, allocations: 51.56 MB / 0.5034 GB, free: 9.582 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2645/0.3745, allocations: 28.72 MB / 0.5315 GB, free: 4.844 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01487/0.3894, allocations: 8.452 MB / 0.5397 GB, free: 4.719 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005484/0.395, allocations: 215.7 kB / 0.5399 GB, free: 4.719 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01784/0.4129, allocations: 8.131 MB / 0.5479 GB, free: 3.324 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01228/0.4252, allocations: 2.8 MB / 0.5506 GB, free: 2.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005986/0.4312, allocations: 1.862 MB / 0.5524 GB, free: 2.324 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01386/0.445, allocations: 9.994 MB / 0.5622 GB, free: 13.88 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02879/0.4739, allocations: 21.36 MB / 0.583 GB, free: 15.04 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008621/0.4825, allocations: 5.373 MB / 0.5883 GB, free: 9.762 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009705/0.4923, allocations: 6.04 MB / 0.5942 GB, free: 3.879 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003762/0.4961, allocations: 1.547 MB / 0.5957 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0061/0.5022, allocations: 1.88 MB / 0.5975 GB, free: 468 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003724/0.5059, allocations: 2.986 MB / 0.6004 GB, free: 13.5 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01176/0.5177, allocations: 5.861 MB / 0.6062 GB, free: 7.656 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02788/0.5456, allocations: 20.63 MB / 0.6263 GB, free: 3.371 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.5457, allocations: 0 / 0.6263 GB, free: 3.371 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.5457, allocations: 0 / 0.6263 GB, free: 3.371 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007451/0.5464, allocations: 0 / 0.6263 GB, free: 3.371 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: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.03652/0.583, allocations: 11.84 MB / 0.6379 GB, free: 7.516 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.141e-05/0.583, allocations: 8.031 kB / 0.6379 GB, free: 7.508 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03107/0.6141, allocations: 5.638 MB / 0.6434 GB, free: 1.918 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0153/0.6294, allocations: 6.308 MB / 0.6495 GB, free: 11.57 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007983/0.6303, allocations: 0.7051 MB / 0.6502 GB, free: 10.87 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004187/0.6345, allocations: 0.9181 MB / 0.6511 GB, free: 9.961 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04021/0.6747, allocations: 15.08 MB / 0.6659 GB, free: 10.82 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003538/0.6751, allocations: 11.81 kB / 0.6659 GB, free: 10.81 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003275/0.6784, allocations: 399.3 kB / 0.6662 GB, free: 10.43 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005535/0.679, allocations: 0.5272 MB / 0.6668 GB, free: 9.902 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02991/0.7089, allocations: 13.74 MB / 0.6802 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5314/1.24, allocations: 47.29 MB / 0.7264 GB, free: 132.4 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01852/1.259, allocations: 28.78 MB / 0.7545 GB, free: 107.1 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005476/1.264, allocations: 2.898 MB / 0.7573 GB, free: 107.1 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003705/1.265, allocations: 239 kB / 0.7575 GB, free: 106.9 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.941e-05/1.265, allocations: 71.89 kB / 0.7576 GB, free: 106.8 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=372): time 5.17e-06/1.265, allocations: 0 / 0.7576 GB, free: 106.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=380): time 0.03076/1.296, allocations: 14.77 MB / 0.772 GB, free: 104.9 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.885e-05/1.296, allocations: 97.83 kB / 0.7721 GB, free: 104.8 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004805/1.3, allocations: 3.758 MB / 0.7758 GB, free: 104.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0003959/1.301, allocations: 87.77 kB / 0.7759 GB, free: 104.5 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001569/1.302, allocations: 4.077 MB / 0.7799 GB, free: 102.2 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001024/1.304, allocations: 1.307 MB / 0.7811 GB, free: 101.4 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001495/1.305, allocations: 1.165 MB / 0.7823 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.664e-05/1.305, allocations: 302.5 kB / 0.7826 GB, free: 101 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002958/1.308, allocations: 2.577 MB / 0.7851 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003807/1.312, allocations: 5.058 MB / 0.79 GB, free: 96.3 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007819/1.32, allocations: 8.255 MB / 0.7981 GB, free: 90.4 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001127/1.32, allocations: 22.38 kB / 0.7981 GB, free: 90.4 MB / 0.5138 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01276/1.333, allocations: 8.616 MB / 0.8065 GB, free: 86.94 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.639e-05/1.333, allocations: 41.78 kB / 0.8065 GB, free: 86.94 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001129/1.333, allocations: 83.03 kB / 0.8066 GB, free: 86.94 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002098/1.335, allocations: 0.874 MB / 0.8075 GB, free: 86.66 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004233/1.339, allocations: 1.361 MB / 0.8088 GB, free: 86.32 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009623/1.349, allocations: 9.023 MB / 0.8176 GB, free: 77.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00518/1.354, allocations: 328.7 kB / 0.8179 GB, free: 77.58 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009967/1.355, allocations: 304 kB / 0.8182 GB, free: 77.28 MB / 0.5138 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.005713/1.361, allocations: 3.525 MB / 0.8217 GB, free: 73.74 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001054/1.362, allocations: 414.9 kB / 0.8221 GB, free: 73.33 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008296/1.37, allocations: 5.851 MB / 0.8278 GB, free: 67.45 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-05/1.37, allocations: 43.98 kB / 0.8278 GB, free: 67.4 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.294e-05/1.37, allocations: 11.28 kB / 0.8278 GB, free: 67.39 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.803e-05/1.37, allocations: 15.94 kB / 0.8278 GB, free: 67.38 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02082/1.391, allocations: 14.47 MB / 0.842 GB, free: 52.88 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.375e-05/1.391, allocations: 4.375 kB / 0.842 GB, free: 52.88 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00239/1.393, allocations: 0.6709 MB / 0.8426 GB, free: 52.21 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00185/1.395, allocations: 0.7214 MB / 0.8433 GB, free: 51.48 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002506/1.396, allocations: 79.98 kB / 0.8434 GB, free: 51.4 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007692/1.403, allocations: 8.061 MB / 0.8513 GB, free: 43.07 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.403, allocations: 4.031 kB / 0.8513 GB, free: 43.06 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01026/1.414, allocations: 8.495 MB / 0.8596 GB, free: 34.46 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/1.415, allocations: 0.8824 MB / 0.8604 GB, free: 33.55 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006418/1.416, allocations: 71.94 kB / 0.8605 GB, free: 33.48 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001734/1.418, allocations: 179.8 kB / 0.8607 GB, free: 33.31 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004266/1.418, allocations: 254.7 kB / 0.8609 GB, free: 33.06 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001942/1.418, allocations: 108 kB / 0.861 GB, free: 32.95 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003176/1.422, allocations: 2.52 MB / 0.8635 GB, free: 30.45 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.2e-07/1.422, allocations: 0 / 0.8635 GB, free: 30.45 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.006051/1.428, allocations: 1.562 MB / 0.865 GB, free: 28.89 MB / 0.5138 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.0006288/1.428, allocations: 250 kB / 0.8653 GB, free: 28.65 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009224/1.438, allocations: 6.566 MB / 0.8717 GB, free: 22.07 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 9.668e-06/1.438, allocations: 1.938 kB / 0.8717 GB, free: 22.07 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003704/1.441, allocations: 2.964 MB / 0.8746 GB, free: 19.08 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004405/1.446, allocations: 0.9736 MB / 0.8755 GB, free: 18.14 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02609/1.472, allocations: 15.64 MB / 0.8908 GB, free: 2.438 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007038/1.479, allocations: 5.966 MB / 0.8966 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00503/1.484, allocations: 1.865 MB / 0.8984 GB, free: 10.55 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001113/1.485, allocations: 343.4 kB / 0.8988 GB, free: 10.22 MB / 0.5294 GB Notification: Performance of SimCode: time 1.001e-06/1.485, allocations: 0 / 0.8988 GB, free: 10.22 MB / 0.5294 GB Notification: Performance of Templates: time 0.3633/1.848, allocations: 60.32 MB / 0.9577 GB, free: 176.9 MB / 0.5607 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile (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)