Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json 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) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) 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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_4.0.0_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.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_4.0.0_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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 174.3 kB / 8.515 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.221/1.221, allocations: 221.4 MB / 230.3 MB, free: 7.68 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009144/0.0009143, allocations: 86.55 kB / 281.2 MB, free: 5.496 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.177/0.177, allocations: 44.14 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.105e-06/8.275e-06, allocations: 3.938 kB / 444 MB, free: 15.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1184, allocations: 61.92 MB / 0.4941 GB, free: 1.602 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3486/0.467, allocations: 122.7 MB / 0.6139 GB, free: 5.98 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.4673, allocations: 82.95 kB / 0.614 GB, free: 5.902 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.1648/0.6322, allocations: 61.12 MB / 0.6737 GB, free: 8.426 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002179/0.6324, allocations: 83.88 kB / 0.6738 GB, free: 8.344 MB / 490.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.006219/0.6387, allocations: 2.904 MB / 0.6766 GB, free: 5.375 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.6387, allocations: 11.97 kB / 0.6766 GB, free: 5.363 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001688/0.6404, allocations: 407.5 kB / 0.677 GB, free: 4.961 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005129/0.6456, allocations: 2.168 MB / 0.6791 GB, free: 2.738 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.913e-05/0.6457, allocations: 92 kB / 0.6792 GB, free: 2.648 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003707/0.6461, allocations: 175.8 kB / 0.6794 GB, free: 2.477 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004797/0.6509, allocations: 2.78 MB / 0.6821 GB, free: 15.69 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004849/0.6557, allocations: 3.254 MB / 0.6853 GB, free: 12.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.049e-05/0.6558, allocations: 7.906 kB / 0.6853 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002167/0.656, allocations: 11.92 kB / 0.6853 GB, free: 12.28 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/0.6562, allocations: 137.5 kB / 0.6854 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01925/0.6754, allocations: 11.11 MB / 0.6963 GB, free: 0.7422 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2336/0.909, allocations: 1.228 MB / 0.6975 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001718/0.9108, allocations: 1.122 MB / 0.6986 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003572/0.9111, allocations: 223.5 kB / 0.6988 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.9112, allocations: 49.12 kB / 0.6988 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 3.557e-06/0.9112, allocations: 0 / 0.6988 GB, free: 103.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162): time 0.01004/0.9212, allocations: 5.652 MB / 0.7043 GB, free: 103 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.422e-05/0.9214, allocations: 71.22 kB / 0.7044 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002496/0.9239, allocations: 1.451 MB / 0.7058 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002124/0.9241, allocations: 29.5 kB / 0.7059 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006431/0.9247, allocations: 1.063 MB / 0.7069 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005014/0.9253, allocations: 0.5302 MB / 0.7074 GB, free: 102 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000129/0.9254, allocations: 0 / 0.7074 GB, free: 102 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000135/0.9255, allocations: 386.8 kB / 0.7078 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001283/0.9268, allocations: 0.881 MB / 0.7086 GB, free: 101.7 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001352/0.9282, allocations: 1.299 MB / 0.7099 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001614/0.9298, allocations: 1.116 MB / 0.711 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.153e-06/0.9298, allocations: 3.844 kB / 0.711 GB, free: 101.2 MB / 0.4948 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.004424/0.9343, allocations: 2.789 MB / 0.7137 GB, free: 101 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.9343, allocations: 6.969 kB / 0.7137 GB, free: 101 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.719e-05/0.9343, allocations: 13.41 kB / 0.7137 GB, free: 101 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00108/0.9354, allocations: 439 kB / 0.7142 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/0.9372, allocations: 450 kB / 0.7146 GB, free: 100.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005699/0.9429, allocations: 6.523 MB / 0.721 GB, free: 97.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002118/0.9451, allocations: 71.75 kB / 0.721 GB, free: 97.16 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002236/0.9453, allocations: 76.75 kB / 0.7211 GB, free: 97.16 MB / 0.4948 GB 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: 59 * 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.0003944/0.9457, allocations: 148 kB / 0.7212 GB, free: 97.06 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003216/0.9461, allocations: 194.4 kB / 0.7214 GB, free: 96.96 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004629/0.9507, allocations: 2.896 MB / 0.7243 GB, free: 96.82 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.9507, allocations: 14.72 kB / 0.7243 GB, free: 96.82 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.027e-05/0.9507, allocations: 7.438 kB / 0.7243 GB, free: 96.82 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.9508, allocations: 6.75 kB / 0.7243 GB, free: 96.82 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0088/0.9596, allocations: 5.74 MB / 0.7299 GB, free: 96.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.9596, allocations: 9.734 kB / 0.7299 GB, free: 96.32 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001094/0.9607, allocations: 236 kB / 0.7301 GB, free: 96.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002124/0.9628, allocations: 0.8439 MB / 0.731 GB, free: 96.28 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001442/0.963, allocations: 16.39 kB / 0.731 GB, free: 96.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009762/0.9728, allocations: 9.578 MB / 0.7403 GB, free: 92.42 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.39e-06/0.9728, allocations: 5.312 kB / 0.7403 GB, free: 92.42 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005947/0.9788, allocations: 4.446 MB / 0.7447 GB, free: 91.77 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001206/0.98, allocations: 499.6 kB / 0.7451 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003476/0.9804, allocations: 9.625 kB / 0.7452 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.9815, allocations: 65.8 kB / 0.7452 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001605/0.9817, allocations: 89.38 kB / 0.7453 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.9818, allocations: 47.17 kB / 0.7453 GB, free: 91.57 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001478/0.9833, allocations: 1.096 MB / 0.7464 GB, free: 91.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002145/0.9855, allocations: 0.5402 MB / 0.7469 GB, free: 91.45 MB / 0.4948 GB 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,dqCurrentController.PI_d.x,dqCurrentController.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.0006252/0.9861, allocations: 381.1 kB / 0.7473 GB, free: 91.35 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003233/0.9893, allocations: 2.541 MB / 0.7498 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.9894, allocations: 0 / 0.7498 GB, free: 91.02 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002036/0.9914, allocations: 1.528 MB / 0.7513 GB, free: 90.7 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/0.9938, allocations: 404.1 kB / 0.7517 GB, free: 90.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01016/1.004, allocations: 4.74 MB / 0.7563 GB, free: 89.14 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002702/1.007, allocations: 2.417 MB / 0.7587 GB, free: 88.12 MB / 0.4948 GB Notification: Performance of SimCode: time 1.242e-06/1.007, allocations: 0 / 0.7587 GB, free: 88.12 MB / 0.4948 GB Notification: Performance of Templates: time 0.05268/1.059, allocations: 29.56 MB / 0.7875 GB, free: 76.21 MB / 0.4948 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)