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.001275/0.001275, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.371/1.371, allocations: 223.2 MB / 238.9 MB, free: 5.461 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.001463/0.001463, allocations: 177 kB / 290.2 MB, free: 2.152 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03328/0.03328, allocations: 8.798 MB / 350.1 MB, free: 4.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003402/0.0003403, allocations: 10.06 kB / 413.1 MB, free: 43.01 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08565/0.08601, allocations: 52.56 MB / 465.7 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02272/0.1088, allocations: 23.05 MB / 488.7 MB, free: 6.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01511/0.1239, allocations: 8.004 MB / 496.7 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004007/0.128, allocations: 183.4 kB / 496.9 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004999/0.133, allocations: 1.687 MB / 498.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0088/0.1418, allocations: 2.779 MB / 0.4896 GB, free: 9.734 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004862/0.1467, allocations: 1.418 MB / 0.491 GB, free: 8.32 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01285/0.1595, allocations: 8.032 MB / 0.4988 GB, free: 288 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0312/0.1908, allocations: 17.15 MB / 0.5156 GB, free: 15.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006441/0.1973, allocations: 3.535 MB / 0.519 GB, free: 11.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006667/0.204, allocations: 3.996 MB / 0.5229 GB, free: 7.473 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001926/0.2059, allocations: 0.5938 MB / 0.5235 GB, free: 6.879 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003451/0.2094, allocations: 0.8863 MB / 0.5244 GB, free: 5.992 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002301/0.2117, allocations: 1.74 MB / 0.5261 GB, free: 4.246 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003051/0.2148, allocations: 1.966 MB / 0.528 GB, free: 2.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2284/0.4432, allocations: 17.34 MB / 0.5449 GB, free: 20.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.4433, allocations: 0 / 0.5449 GB, free: 20.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.458e-06/0.4433, allocations: 0 / 0.5449 GB, free: 20.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008365/0.4442, allocations: 0 / 0.5449 GB, free: 20.02 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.03452/0.4787, allocations: 9.834 MB / 0.5545 GB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.4788, allocations: 12.03 kB / 0.5545 GB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03098/0.5097, allocations: 5.536 MB / 0.56 GB, free: 12.99 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01466/0.5244, allocations: 6.072 MB / 0.5659 GB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007746/0.5253, allocations: 0.7052 MB / 0.5666 GB, free: 11.34 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003951/0.5292, allocations: 0.925 MB / 0.5675 GB, free: 11.33 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03944/0.5687, allocations: 14.92 MB / 0.582 GB, free: 7.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004521/0.5692, allocations: 18.73 kB / 0.5821 GB, free: 7.895 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004618/0.5738, allocations: 389.5 kB / 0.5824 GB, free: 7.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000648/0.5745, allocations: 0.5196 MB / 0.5829 GB, free: 7.328 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04033/0.6148, allocations: 13.66 MB / 0.5963 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08892/0.7038, allocations: 47.9 MB / 0.6431 GB, free: 0 / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02233/0.7262, allocations: 28.72 MB / 0.6711 GB, free: 15.55 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006915/0.7269, allocations: 240.2 kB / 0.6713 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.932e-05/0.727, allocations: 77.48 kB / 0.6714 GB, free: 15.21 MB / 462.1 MB Notification: Performance of pre-optimization done (n=372): time 6.833e-06/0.727, allocations: 0 / 0.6714 GB, free: 15.21 MB / 462.1 MB Notification: Performance of matching and sorting (n=380): time 0.03352/0.7606, allocations: 14.54 MB / 0.6856 GB, free: 0.5977 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.7607, allocations: 90.39 kB / 0.6857 GB, free: 0.4961 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00572/0.7664, allocations: 3.668 MB / 0.6893 GB, free: 12.84 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00072/0.7671, allocations: 85.7 kB / 0.6894 GB, free: 12.75 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002755/0.7699, allocations: 4.076 MB / 0.6933 GB, free: 8.648 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001772/0.7717, allocations: 1.31 MB / 0.6946 GB, free: 7.352 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000371/0.7721, allocations: 120 kB / 0.6947 GB, free: 7.234 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003883/0.7725, allocations: 0.5462 MB / 0.6953 GB, free: 6.68 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003879/0.7764, allocations: 2.553 MB / 0.6978 GB, free: 4.121 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2314/1.008, allocations: 4.998 MB / 0.7026 GB, free: 152.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006907/1.015, allocations: 3.736 MB / 0.7063 GB, free: 152.8 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.779e-05/1.015, allocations: 23.44 kB / 0.7063 GB, free: 152.8 MB / 478.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01508/1.03, allocations: 8.551 MB / 0.7147 GB, free: 150.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.944e-05/1.03, allocations: 43.34 kB / 0.7147 GB, free: 150.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001406/1.03, allocations: 84.09 kB / 0.7148 GB, free: 150.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00203/1.032, allocations: 0.8441 MB / 0.7156 GB, free: 150 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004385/1.037, allocations: 1.371 MB / 0.7169 GB, free: 149.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009813/1.046, allocations: 8.401 MB / 0.7252 GB, free: 144.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004398/1.051, allocations: 327.6 kB / 0.7255 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006104/1.051, allocations: 302.7 kB / 0.7258 GB, free: 144.6 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 374 * 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 (722): * Single equations (assignments): 720 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006111/1.058, allocations: 3.511 MB / 0.7292 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009371/1.059, allocations: 412.6 kB / 0.7296 GB, free: 142.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008445/1.067, allocations: 5.848 MB / 0.7353 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.347e-05/1.067, allocations: 43.73 kB / 0.7353 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.236e-05/1.067, allocations: 7.344 kB / 0.7353 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.044e-05/1.067, allocations: 18.89 kB / 0.7354 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02005/1.087, allocations: 14.39 MB / 0.7494 GB, free: 129.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.145e-05/1.087, allocations: 0 / 0.7494 GB, free: 129.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002455/1.09, allocations: 0.6703 MB / 0.7501 GB, free: 129 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001764/1.091, allocations: 0.6986 MB / 0.7507 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002009/1.092, allocations: 75.98 kB / 0.7508 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008101/1.1, allocations: 7.563 MB / 0.7582 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.1, allocations: 7.969 kB / 0.7582 GB, free: 120.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01155/1.111, allocations: 8.695 MB / 0.7667 GB, free: 111.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003166/1.115, allocations: 0.8784 MB / 0.7676 GB, free: 110.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004962/1.115, allocations: 75.94 kB / 0.7676 GB, free: 110.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001633/1.117, allocations: 175.9 kB / 0.7678 GB, free: 110.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004441/1.117, allocations: 254.6 kB / 0.768 GB, free: 110.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001862/1.117, allocations: 108 kB / 0.7681 GB, free: 110.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003791/1.121, allocations: 2.45 MB / 0.7705 GB, free: 107.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/1.121, allocations: 0 / 0.7705 GB, free: 107.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005889/1.127, allocations: 1.554 MB / 0.7721 GB, free: 106.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005909/1.128, allocations: 244.5 kB / 0.7723 GB, free: 105.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009872/1.138, allocations: 6.497 MB / 0.7786 GB, free: 99.41 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.069e-05/1.138, allocations: 3.844 kB / 0.7786 GB, free: 99.41 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004486/1.142, allocations: 2.969 MB / 0.7815 GB, free: 96.42 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004837/1.147, allocations: 0.8518 MB / 0.7824 GB, free: 95.59 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02605/1.173, allocations: 18.84 MB / 0.8008 GB, free: 76.69 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005571/1.179, allocations: 6.118 MB / 0.8067 GB, free: 70.52 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005123/1.184, allocations: 1.861 MB / 0.8086 GB, free: 68.66 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009201/1.185, allocations: 343.4 kB / 0.8089 GB, free: 68.32 MB / 478.1 MB Notification: Performance of SimCode: time 1.282e-06/1.185, allocations: 0 / 0.8089 GB, free: 68.32 MB / 478.1 MB Notification: Performance of Templates: time 0.09303/1.278, allocations: 57.93 MB / 0.8655 GB, free: 10.72 MB / 478.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: