Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002498/0.002503, allocations: 170 kB / 8.148 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.719/1.719, allocations: 205.2 MB / 213.8 MB, free: 13.94 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001273/0.001272, allocations: 90.75 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2712/0.2712, allocations: 43.49 MB / 353.2 MB, free: 2.059 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 9.608e-06/9.829e-06, allocations: 0 / 417.7 MB, free: 40.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.3018, allocations: 58.83 MB / 476.5 MB, free: 5.086 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2102/0.512, allocations: 122.3 MB / 0.5848 GB, free: 8.77 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.5124, allocations: 79.47 kB / 0.5848 GB, free: 8.695 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.4819/0.9943, allocations: 60.77 MB / 0.6442 GB, free: 107.5 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0003561/0.9947, allocations: 85.16 kB / 0.6443 GB, free: 107.5 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01055/1.005, allocations: 2.891 MB / 0.6471 GB, free: 106.5 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/1.005, allocations: 7.406 kB / 0.6471 GB, free: 106.5 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002361/1.008, allocations: 401.5 kB / 0.6475 GB, free: 106.3 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007778/1.016, allocations: 2.168 MB / 0.6496 GB, free: 105.8 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001797/1.016, allocations: 98.47 kB / 0.6497 GB, free: 105.8 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00109/1.017, allocations: 171.9 kB / 0.6498 GB, free: 105.8 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009218/1.026, allocations: 2.785 MB / 0.6526 GB, free: 105.8 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01076/1.037, allocations: 3.26 MB / 0.6557 GB, free: 105.4 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001252/1.037, allocations: 6.875 kB / 0.6558 GB, free: 105.4 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003755/1.037, allocations: 3.812 kB / 0.6558 GB, free: 105.4 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001487/1.038, allocations: 139.8 kB / 0.6559 GB, free: 105.4 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03003/1.068, allocations: 11.11 MB / 0.6667 GB, free: 102.9 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003317/1.071, allocations: 1.228 MB / 0.6679 GB, free: 102.8 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002935/1.074, allocations: 1.126 MB / 0.669 GB, free: 102.8 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005167/1.075, allocations: 225.8 kB / 0.6693 GB, free: 102.6 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.607e-05/1.075, allocations: 50.47 kB / 0.6693 GB, free: 102.6 MB / 474.7 MB Notification: Performance of pre-optimization done (n=148): time 4.598e-06/1.075, allocations: 0 / 0.6693 GB, free: 102.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=162): time 0.01839/1.093, allocations: 5.648 MB / 0.6748 GB, free: 100.2 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.187e-05/1.093, allocations: 68 kB / 0.6749 GB, free: 100.2 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003488/1.097, allocations: 1.463 MB / 0.6763 GB, free: 99.57 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004316/1.097, allocations: 25.7 kB / 0.6763 GB, free: 99.54 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004599/1.098, allocations: 0.9998 MB / 0.6773 GB, free: 98.77 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007093/1.098, allocations: 0.5296 MB / 0.6778 GB, free: 98.35 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/1.099, allocations: 0 / 0.6778 GB, free: 98.35 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001465/1.099, allocations: 378.8 kB / 0.6782 GB, free: 98.01 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002212/1.101, allocations: 0.8788 MB / 0.679 GB, free: 97.67 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002578/1.104, allocations: 1.308 MB / 0.6803 GB, free: 96.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002881/1.106, allocations: 1.113 MB / 0.6814 GB, free: 96.38 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.795e-05/1.107, allocations: 3.969 kB / 0.6814 GB, free: 96.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.007737/1.114, allocations: 2.679 MB / 0.684 GB, free: 95.48 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/1.114, allocations: 10.39 kB / 0.684 GB, free: 95.48 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.358e-05/1.114, allocations: 13.08 kB / 0.6841 GB, free: 95.48 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001748/1.116, allocations: 446.5 kB / 0.6845 GB, free: 95.35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003816/1.12, allocations: 444.9 kB / 0.6849 GB, free: 95.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01004/1.13, allocations: 6.55 MB / 0.6913 GB, free: 90.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002016/1.132, allocations: 63.11 kB / 0.6914 GB, free: 90.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003005/1.133, allocations: 81.64 kB / 0.6914 GB, free: 90.48 MB / 474.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (210): * Single equations (assignments): 207 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004952/1.133, allocations: 78.11 kB / 0.6915 GB, free: 90.43 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007455/1.134, allocations: 197.7 kB / 0.6917 GB, free: 90.33 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009624/1.143, allocations: 2.881 MB / 0.6945 GB, free: 89.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.561e-05/1.144, allocations: 15.84 kB / 0.6945 GB, free: 89.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.205e-05/1.144, allocations: 7.312 kB / 0.6945 GB, free: 89.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-05/1.144, allocations: 10.75 kB / 0.6945 GB, free: 89.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01916/1.163, allocations: 5.737 MB / 0.7002 GB, free: 87.06 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-05/1.163, allocations: 3.125 kB / 0.7002 GB, free: 87.06 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002471/1.165, allocations: 245.6 kB / 0.7004 GB, free: 87.05 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004391/1.17, allocations: 0.836 MB / 0.7012 GB, free: 86.82 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003984/1.17, allocations: 21.02 kB / 0.7012 GB, free: 86.82 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01931/1.19, allocations: 9.578 MB / 0.7106 GB, free: 80.73 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.341e-05/1.19, allocations: 7.531 kB / 0.7106 GB, free: 80.73 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01224/1.202, allocations: 4.461 MB / 0.7149 GB, free: 78.73 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001876/1.204, allocations: 488.6 kB / 0.7154 GB, free: 78.43 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006314/1.204, allocations: 9.594 kB / 0.7154 GB, free: 78.43 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002219/1.207, allocations: 67.8 kB / 0.7155 GB, free: 78.42 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002659/1.207, allocations: 83.89 kB / 0.7156 GB, free: 78.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001853/1.207, allocations: 50.47 kB / 0.7156 GB, free: 78.4 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.002846/1.21, allocations: 1.094 MB / 0.7167 GB, free: 77.95 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.003781/1.214, allocations: 0.5283 MB / 0.7172 GB, free: 77.84 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 113 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009789/1.215, allocations: 386.3 kB / 0.7176 GB, free: 77.52 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.006106/1.221, allocations: 2.53 MB / 0.72 GB, free: 75.16 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.977e-06/1.221, allocations: 3.281 kB / 0.72 GB, free: 75.16 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003749/1.225, allocations: 1.524 MB / 0.7215 GB, free: 73.73 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004218/1.229, allocations: 397.2 kB / 0.7219 GB, free: 73.43 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01527/1.244, allocations: 4.799 MB / 0.7266 GB, free: 69.09 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005373/1.25, allocations: 2.406 MB / 0.7289 GB, free: 67.18 MB / 474.7 MB Notification: Performance of SimCode: time 1.523e-06/1.25, allocations: 0 / 0.7289 GB, free: 67.18 MB / 474.7 MB Notification: Performance of Templates: time 0.109/1.359, allocations: 74.23 MB / 0.8014 GB, free: 15.53 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)