Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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/Complex 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) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 103 kB / 17.74 MB, free: 5.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 198.5 kB / 18.68 MB, free: 4.406 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.333/1.333, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001042/0.001042, allocations: 51.86 kB / 352 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2211/0.2222, allocations: 49.44 MB / 401.4 MB, free: 8.945 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01185/0.234, allocations: 10.91 MB / 412.3 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006496/0.2406, allocations: 3.603 MB / 415.9 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001583/0.2422, allocations: 67.69 kB / 416 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002022/0.2442, allocations: 0.8696 MB / 416.9 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002173/0.2464, allocations: 0.9126 MB / 417.8 MB, free: 8.574 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008729/0.2473, allocations: 459.2 kB / 418.2 MB, free: 8.125 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002577/0.2499, allocations: 2.942 MB / 421.2 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002742/0.2526, allocations: 2.735 MB / 423.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00151/0.2542, allocations: 1.382 MB / 425.3 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001895/0.2561, allocations: 1.755 MB / 427.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004617/0.2565, allocations: 372 kB / 427.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007952/0.2573, allocations: 471.8 kB / 427.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009284/0.2583, allocations: 1.075 MB / 429 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001454/0.2598, allocations: 1.672 MB / 430.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003977/0.2637, allocations: 4.883 MB / 435.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2638, allocations: 0 / 435.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2638, allocations: 0 / 435.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.678e-05/0.2638, allocations: 0 / 435.5 MB, free: 6.742 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.005856/0.2697, allocations: 3.394 MB / 438.9 MB, free: 3.281 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.79e-05/0.2697, allocations: 12.03 kB / 438.9 MB, free: 3.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007399/0.2705, allocations: 333.1 kB / 439.2 MB, free: 2.941 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003044/0.2735, allocations: 1.826 MB / 441.1 MB, free: 1.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001298/0.2737, allocations: 185.4 kB / 441.3 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003418/0.274, allocations: 255.9 kB / 441.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005/0.279, allocations: 3.279 MB / 444.8 MB, free: 13.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.815e-05/0.2791, allocations: 7.906 kB / 444.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002303/0.2793, allocations: 104 kB / 444.9 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001714/0.2795, allocations: 124.9 kB / 445 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004382/0.2839, allocations: 2.748 MB / 447.8 MB, free: 10.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01425/0.2982, allocations: 10.38 MB / 458.1 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001795/0.3, allocations: 1.366 MB / 459.5 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001153/0.3011, allocations: 0.754 MB / 460.3 MB, free: 13.33 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002688/0.3014, allocations: 204.2 kB / 460.5 MB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.28e-05/0.3015, allocations: 47.56 kB / 460.5 MB, free: 13.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.966e-06/0.3015, allocations: 0 / 460.5 MB, free: 13.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01446/0.3159, allocations: 6.909 MB / 467.4 MB, free: 6.016 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.602e-05/0.316, allocations: 64.41 kB / 467.5 MB, free: 5.941 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00243/0.3184, allocations: 1.785 MB / 469.3 MB, free: 4.156 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.631e-05/0.3185, allocations: 53.7 kB / 469.3 MB, free: 4.098 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000829/0.3194, allocations: 1.271 MB / 470.6 MB, free: 2.809 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003204/0.3197, allocations: 429.9 kB / 471 MB, free: 2.383 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004481/0.3202, allocations: 295.2 kB / 471.3 MB, free: 2.086 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.602e-05/0.3203, allocations: 309 kB / 471.6 MB, free: 1.781 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.3214, allocations: 0.7769 MB / 472.4 MB, free: 1.004 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.3229, allocations: 1.292 MB / 473.7 MB, free: 15.49 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002751/0.3257, allocations: 2.21 MB / 475.9 MB, free: 13.05 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.659e-06/0.3257, allocations: 4 kB / 475.9 MB, free: 13.05 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00388/0.3296, allocations: 2.478 MB / 478.4 MB, free: 10.55 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.3296, allocations: 15.98 kB / 478.4 MB, free: 10.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.424e-05/0.3296, allocations: 19.94 kB / 478.4 MB, free: 10.51 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006107/0.3303, allocations: 235.3 kB / 478.6 MB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/0.3318, allocations: 419.4 kB / 479 MB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002585/0.3344, allocations: 3.23 MB / 482.3 MB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001303/0.3357, allocations: 135.7 kB / 482.4 MB, free: 6.207 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001281/0.3358, allocations: 68 kB / 482.5 MB, free: 6.141 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001254/0.3371, allocations: 0.8212 MB / 483.3 MB, free: 5.309 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003416/0.3374, allocations: 181.8 kB / 483.5 MB, free: 5.129 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003379/0.3408, allocations: 2.05 MB / 485.5 MB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.523e-05/0.3409, allocations: 11.97 kB / 485.5 MB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.3409, allocations: 0 / 485.5 MB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000848/0.3417, allocations: 422.7 kB / 485.9 MB, free: 2.613 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002914/0.342, allocations: 23.94 kB / 486 MB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009911/0.343, allocations: 99.86 kB / 486.1 MB, free: 2.492 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.3432, allocations: 80.88 kB / 486.1 MB, free: 2.414 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003844/0.347, allocations: 2.062 MB / 488.2 MB, free: 340 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004016/0.3511, allocations: 3.024 MB / 491.2 MB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001049/0.3521, allocations: 0.8159 MB / 492 MB, free: 12.46 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001976/0.3541, allocations: 1.224 MB / 493.3 MB, free: 11.25 MB / 414.1 MB Notification: Performance of Backend: time 3.61e-07/0.3541, allocations: 0 / 493.3 MB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003458/0.3576, allocations: 1.819 MB / 495.1 MB, free: 9.363 MB / 414.1 MB Notification: Performance of SimCode: time 0.008145/0.3658, allocations: 5.025 MB / 0.4884 GB, free: 4.285 MB / 414.1 MB Notification: Performance of Templates: time 0.04943/0.4152, allocations: 29.35 MB / 0.517 GB, free: 7.199 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)