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.001454/0.001454, allocations: 107.4 kB / 16.41 MB, free: 6.449 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.368/1.368, allocations: 222.9 MB / 240.1 MB, free: 4.359 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.001478/0.001478, allocations: 184.5 kB / 290.4 MB, free: 2.086 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03391/0.03391, allocations: 8.804 MB / 349.3 MB, free: 4.566 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.0015, allocations: 79.88 kB / 464.6 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1027, allocations: 51.57 MB / 0.5041 GB, free: 9.402 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2613/0.364, allocations: 28.71 MB / 0.5321 GB, free: 4.895 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01736/0.3814, allocations: 8.456 MB / 0.5404 GB, free: 4.766 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006685/0.3881, allocations: 218.5 kB / 0.5406 GB, free: 4.758 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01853/0.4067, allocations: 8.12 MB / 0.5485 GB, free: 3.328 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01078/0.4175, allocations: 2.805 MB / 0.5513 GB, free: 2.516 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007552/0.4251, allocations: 1.861 MB / 0.5531 GB, free: 2.328 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01538/0.4405, allocations: 10 MB / 0.5628 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03664/0.4771, allocations: 21.35 MB / 0.5837 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009553/0.4868, allocations: 5.372 MB / 0.5889 GB, free: 9.789 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01013/0.4969, allocations: 6.047 MB / 0.5948 GB, free: 3.898 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00418/0.5011, allocations: 1.543 MB / 0.5964 GB, free: 2.355 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006265/0.5074, allocations: 1.88 MB / 0.5982 GB, free: 492 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004618/0.5121, allocations: 2.991 MB / 0.6011 GB, free: 13.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01086/0.523, allocations: 5.856 MB / 0.6068 GB, free: 7.68 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02256/0.5455, allocations: 20.63 MB / 0.627 GB, free: 3.398 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.11e-05/0.5456, allocations: 4 kB / 0.627 GB, free: 3.395 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.5456, allocations: 4 kB / 0.627 GB, free: 3.391 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005478/0.5462, allocations: 4 kB / 0.627 GB, free: 3.387 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.03465/0.5808, allocations: 11.83 MB / 0.6385 GB, free: 7.535 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.5809, allocations: 12.03 kB / 0.6385 GB, free: 7.523 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03059/0.6115, allocations: 5.622 MB / 0.644 GB, free: 1.949 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01272/0.6243, allocations: 6.323 MB / 0.6502 GB, free: 11.59 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006568/0.625, allocations: 0.702 MB / 0.6509 GB, free: 10.89 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003559/0.6285, allocations: 0.9267 MB / 0.6518 GB, free: 9.973 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03764/0.6662, allocations: 15.08 MB / 0.6665 GB, free: 10.84 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003862/0.6666, allocations: 19.81 kB / 0.6665 GB, free: 10.82 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003189/0.6698, allocations: 388.4 kB / 0.6669 GB, free: 10.45 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006777/0.6705, allocations: 0.5194 MB / 0.6674 GB, free: 9.93 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03101/0.7015, allocations: 13.74 MB / 0.6808 GB, free: 12.16 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5204/1.222, allocations: 47.3 MB / 0.727 GB, free: 132.4 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01945/1.242, allocations: 28.79 MB / 0.7551 GB, free: 107.1 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005245/1.247, allocations: 2.898 MB / 0.758 GB, free: 107 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000367/1.247, allocations: 234.5 kB / 0.7582 GB, free: 106.8 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.405e-05/1.247, allocations: 75.83 kB / 0.7583 GB, free: 106.8 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=372): time 5.54e-06/1.247, allocations: 0 / 0.7583 GB, free: 106.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=380): time 0.02994/1.277, allocations: 14.76 MB / 0.7727 GB, free: 104.8 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/1.277, allocations: 92.19 kB / 0.7728 GB, free: 104.8 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005246/1.283, allocations: 3.762 MB / 0.7764 GB, free: 104.4 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006227/1.283, allocations: 90.36 kB / 0.7765 GB, free: 104.4 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001919/1.285, allocations: 4.079 MB / 0.7805 GB, free: 102.1 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001317/1.286, allocations: 1.307 MB / 0.7818 GB, free: 101.3 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001694/1.288, allocations: 1.166 MB / 0.7829 GB, free: 101.2 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.817e-05/1.288, allocations: 301.1 kB / 0.7832 GB, free: 100.9 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003147/1.291, allocations: 2.58 MB / 0.7857 GB, free: 100.5 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004088/1.295, allocations: 5.056 MB / 0.7907 GB, free: 96.26 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008189/1.304, allocations: 8.253 MB / 0.7987 GB, free: 90.36 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.624e-05/1.304, allocations: 24.31 kB / 0.7988 GB, free: 90.36 MB / 0.5138 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.0133/1.317, allocations: 8.616 MB / 0.8072 GB, free: 86.89 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 6.853e-05/1.317, allocations: 43.17 kB / 0.8072 GB, free: 86.89 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001273/1.317, allocations: 86.72 kB / 0.8073 GB, free: 86.89 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002135/1.319, allocations: 0.8769 MB / 0.8082 GB, free: 86.61 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004343/1.324, allocations: 1.36 MB / 0.8095 GB, free: 86.28 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009095/1.333, allocations: 9.013 MB / 0.8183 GB, free: 77.71 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004293/1.337, allocations: 331.4 kB / 0.8186 GB, free: 77.39 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007594/1.338, allocations: 304 kB / 0.8189 GB, free: 77.09 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.005101/1.343, allocations: 3.517 MB / 0.8223 GB, free: 73.56 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/1.344, allocations: 426.8 kB / 0.8227 GB, free: 73.14 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008259/1.352, allocations: 5.853 MB / 0.8284 GB, free: 67.25 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.021e-05/1.353, allocations: 40 kB / 0.8285 GB, free: 67.21 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.281e-05/1.353, allocations: 11.12 kB / 0.8285 GB, free: 67.21 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.325e-05/1.353, allocations: 19.92 kB / 0.8285 GB, free: 67.19 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01992/1.372, allocations: 14.48 MB / 0.8427 GB, free: 52.69 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.507e-05/1.373, allocations: 2.125 kB / 0.8427 GB, free: 52.69 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002317/1.375, allocations: 0.667 MB / 0.8433 GB, free: 52.02 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001811/1.377, allocations: 0.7216 MB / 0.844 GB, free: 51.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002649/1.377, allocations: 85.17 kB / 0.8441 GB, free: 51.21 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007651/1.385, allocations: 8.064 MB / 0.852 GB, free: 42.87 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.385, allocations: 4 kB / 0.852 GB, free: 42.87 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01036/1.395, allocations: 8.498 MB / 0.8603 GB, free: 34.27 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002012/1.397, allocations: 0.8746 MB / 0.8611 GB, free: 33.37 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000622/1.398, allocations: 75.91 kB / 0.8612 GB, free: 33.29 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001705/1.399, allocations: 179.9 kB / 0.8614 GB, free: 33.12 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004476/1.4, allocations: 250 kB / 0.8616 GB, free: 32.88 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001867/1.4, allocations: 112 kB / 0.8617 GB, free: 32.77 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.003219/1.403, allocations: 2.524 MB / 0.8642 GB, free: 30.26 MB / 0.5138 GB Notification: Performance of sort global known variables: time 1.3e-07/1.403, allocations: 0 / 0.8642 GB, free: 30.26 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005149/1.408, allocations: 1.557 MB / 0.8657 GB, free: 28.71 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.0005817/1.409, allocations: 242.4 kB / 0.8659 GB, free: 28.46 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.008717/1.418, allocations: 6.562 MB / 0.8723 GB, free: 21.89 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/1.418, allocations: 4.125 kB / 0.8723 GB, free: 21.88 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.003925/1.422, allocations: 2.96 MB / 0.8752 GB, free: 18.9 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004542/1.426, allocations: 0.9582 MB / 0.8762 GB, free: 17.98 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02343/1.45, allocations: 15.4 MB / 0.8912 GB, free: 2.512 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005945/1.456, allocations: 5.79 MB / 0.8969 GB, free: 12.68 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001657/1.457, allocations: 383.4 kB / 0.8972 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of SimCode: time 1.203e-06/1.458, allocations: 0 / 0.8972 GB, free: 12.3 MB / 0.5294 GB Notification: Performance of Templates: time 0.4502/1.908, allocations: 206 MB / 1.098 GB, free: 50.26 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)