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.001536/0.001536, allocations: 107.6 kB / 16.37 MB, free: 6.477 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.332/1.332, allocations: 222.9 MB / 240 MB, free: 4.594 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.001239/0.001239, allocations: 180.5 kB / 290.3 MB, free: 2.324 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03436/0.03436, allocations: 8.787 MB / 349.3 MB, free: 4.68 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 80.17 kB / 412.5 MB, free: 41.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08205/0.08362, allocations: 51.57 MB / 464.1 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.027/0.1107, allocations: 28.71 MB / 492.8 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01816/0.1289, allocations: 8.446 MB / 0.4895 GB, free: 8.312 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005297/0.1342, allocations: 215.4 kB / 0.4897 GB, free: 8.102 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01746/0.1517, allocations: 8.131 MB / 0.4977 GB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008443/0.1602, allocations: 2.815 MB / 0.5004 GB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005132/0.1653, allocations: 1.857 MB / 0.5022 GB, free: 11.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01251/0.1779, allocations: 9.991 MB / 0.512 GB, free: 1.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3044/0.4823, allocations: 21.34 MB / 0.5328 GB, free: 13.85 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01005/0.4924, allocations: 5.362 MB / 0.5381 GB, free: 13.53 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0124/0.5049, allocations: 6.045 MB / 0.544 GB, free: 12.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007322/0.5122, allocations: 1.543 MB / 0.5455 GB, free: 12.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009939/0.5222, allocations: 1.888 MB / 0.5473 GB, free: 12.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00747/0.5297, allocations: 2.986 MB / 0.5502 GB, free: 12.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0139/0.5436, allocations: 5.861 MB / 0.556 GB, free: 10.86 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02332/0.567, allocations: 20.61 MB / 0.5761 GB, free: 2.113 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.804e-06/0.567, allocations: 0 / 0.5761 GB, free: 2.113 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.5671, allocations: 3.469 kB / 0.5761 GB, free: 2.113 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007505/0.5678, allocations: 0 / 0.5761 GB, free: 2.113 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.04365/0.6115, allocations: 11.85 MB / 0.5877 GB, free: 10.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.6115, allocations: 7.438 kB / 0.5877 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03782/0.6494, allocations: 5.631 MB / 0.5932 GB, free: 5.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02111/0.6705, allocations: 6.318 MB / 0.5993 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001197/0.6718, allocations: 0.708 MB / 0.6 GB, free: 14.49 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004816/0.6766, allocations: 0.935 MB / 0.6009 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0435/0.7201, allocations: 15.07 MB / 0.6157 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005113/0.7207, allocations: 11.91 kB / 0.6157 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003225/0.724, allocations: 393.6 kB / 0.616 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005925/0.7246, allocations: 0.523 MB / 0.6166 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03167/0.7562, allocations: 13.74 MB / 0.63 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0907/0.847, allocations: 47.3 MB / 0.6762 GB, free: 64 kB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2167/1.064, allocations: 28.77 MB / 0.7043 GB, free: 159.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004643/1.068, allocations: 2.896 MB / 0.7071 GB, free: 159.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000382/1.069, allocations: 236.8 kB / 0.7073 GB, free: 159 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.056e-05/1.069, allocations: 73.27 kB / 0.7074 GB, free: 159 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 5.891e-06/1.069, allocations: 2.594 kB / 0.7074 GB, free: 159 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.03209/1.101, allocations: 14.76 MB / 0.7218 GB, free: 157.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.156e-05/1.101, allocations: 92.14 kB / 0.7219 GB, free: 157.2 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006142/1.107, allocations: 3.76 MB / 0.7256 GB, free: 156.8 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000621/1.108, allocations: 90.17 kB / 0.7256 GB, free: 156.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002184/1.11, allocations: 4.081 MB / 0.7296 GB, free: 154.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001174/1.111, allocations: 1.31 MB / 0.7309 GB, free: 153.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001501/1.113, allocations: 1.158 MB / 0.732 GB, free: 152.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.69e-05/1.113, allocations: 312.1 kB / 0.7323 GB, free: 152.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003135/1.116, allocations: 2.576 MB / 0.7349 GB, free: 151.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004762/1.121, allocations: 5.054 MB / 0.7398 GB, free: 147.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009263/1.13, allocations: 8.261 MB / 0.7479 GB, free: 141.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001118/1.13, allocations: 22.5 kB / 0.7479 GB, free: 141.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01493/1.145, allocations: 8.619 MB / 0.7563 GB, free: 138 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/1.145, allocations: 42.34 kB / 0.7563 GB, free: 138 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000186/1.145, allocations: 80.5 kB / 0.7564 GB, free: 138 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002498/1.148, allocations: 0.8772 MB / 0.7573 GB, free: 137.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005181/1.153, allocations: 1.356 MB / 0.7586 GB, free: 137.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.011/1.164, allocations: 9.026 MB / 0.7674 GB, free: 130.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005503/1.17, allocations: 325.7 kB / 0.7677 GB, free: 130.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001294/1.171, allocations: 304.2 kB / 0.768 GB, free: 129.9 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.008137/1.179, allocations: 3.514 MB / 0.7714 GB, free: 126.9 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001567/1.181, allocations: 410.7 kB / 0.7718 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01086/1.192, allocations: 5.864 MB / 0.7776 GB, free: 121.3 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-05/1.192, allocations: 40 kB / 0.7776 GB, free: 121.3 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.372e-05/1.192, allocations: 9.5 kB / 0.7776 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-05/1.192, allocations: 19.92 kB / 0.7776 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03178/1.224, allocations: 14.47 MB / 0.7918 GB, free: 106.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.534e-05/1.224, allocations: 4 kB / 0.7918 GB, free: 106.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00277/1.226, allocations: 0.6635 MB / 0.7924 GB, free: 106.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002384/1.229, allocations: 0.7296 MB / 0.7931 GB, free: 105.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000635/1.23, allocations: 85.16 kB / 0.7932 GB, free: 105.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00858/1.238, allocations: 8.058 MB / 0.8011 GB, free: 96.93 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/1.238, allocations: 0 / 0.8011 GB, free: 96.93 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01244/1.251, allocations: 8.502 MB / 0.8094 GB, free: 88.32 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003044/1.254, allocations: 0.8784 MB / 0.8102 GB, free: 87.42 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001225/1.255, allocations: 68.06 kB / 0.8103 GB, free: 87.35 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00247/1.257, allocations: 191.1 kB / 0.8105 GB, free: 87.17 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005996/1.258, allocations: 250.6 kB / 0.8107 GB, free: 86.92 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003122/1.258, allocations: 108 kB / 0.8108 GB, free: 86.82 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004729/1.263, allocations: 2.528 MB / 0.8133 GB, free: 84.3 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.11e-07/1.263, allocations: 0 / 0.8133 GB, free: 84.3 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007064/1.27, allocations: 1.551 MB / 0.8148 GB, free: 82.75 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.0007635/1.271, allocations: 242.8 kB / 0.815 GB, free: 82.52 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009893/1.281, allocations: 6.568 MB / 0.8215 GB, free: 75.93 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/1.281, allocations: 4 kB / 0.8215 GB, free: 75.93 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00421/1.285, allocations: 2.966 MB / 0.8244 GB, free: 72.94 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006045/1.291, allocations: 0.9638 MB / 0.8253 GB, free: 72.03 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03291/1.324, allocations: 15.64 MB / 0.8406 GB, free: 56.33 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0111/1.335, allocations: 5.969 MB / 0.8464 GB, free: 50.32 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006266/1.342, allocations: 1.871 MB / 0.8482 GB, free: 48.48 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001634/1.343, allocations: 343.4 kB / 0.8486 GB, free: 48.14 MB / 494.1 MB Notification: Performance of SimCode: time 8.91e-07/1.343, allocations: 0 / 0.8486 GB, free: 48.14 MB / 494.1 MB Notification: Performance of Templates: time 0.2873/1.631, allocations: 57.96 MB / 0.9052 GB, free: 140.6 MB / 494.1 MB 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 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)