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: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) [: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.001056/0.001056, allocations: 179 kB / 8.519 MB, free: 1.832 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.147/1.147, allocations: 221.4 MB / 230.3 MB, free: 7.703 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.0008972/0.0008971, allocations: 91.73 kB / 281.2 MB, free: 5.449 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.1642/0.1642, allocations: 44.15 MB / 376.1 MB, free: 3.215 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1954/0.3596, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.4682, allocations: 61.91 MB / 0.4942 GB, free: 1.527 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3035/0.7718, allocations: 122.7 MB / 0.614 GB, free: 5.902 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001818/0.772, allocations: 79.75 kB / 0.6141 GB, free: 5.828 MB / 426.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.1746/0.9466, allocations: 64.12 MB / 0.6767 GB, free: 5.297 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.9466, allocations: 17.19 kB / 0.6767 GB, free: 5.281 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001666/0.9483, allocations: 403.5 kB / 0.6771 GB, free: 4.883 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004371/0.9527, allocations: 2.169 MB / 0.6792 GB, free: 2.66 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.696e-05/0.9528, allocations: 95.98 kB / 0.6793 GB, free: 2.566 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003662/0.9532, allocations: 175.8 kB / 0.6795 GB, free: 2.395 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004902/0.9581, allocations: 2.776 MB / 0.6822 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005285/0.9634, allocations: 3.258 MB / 0.6854 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-05/0.9635, allocations: 11.84 kB / 0.6854 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002264/0.9637, allocations: 4 kB / 0.6854 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001093/0.9638, allocations: 133.5 kB / 0.6855 GB, free: 12.07 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01824/0.9821, allocations: 11.11 MB / 0.6964 GB, free: 0.6719 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1412/1.123, allocations: 1.224 MB / 0.6976 GB, free: 179.5 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001416/1.125, allocations: 1.12 MB / 0.6987 GB, free: 179.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003047/1.125, allocations: 224.4 kB / 0.6989 GB, free: 179.3 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/1.125, allocations: 49.53 kB / 0.6989 GB, free: 179.3 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 3.366e-06/1.125, allocations: 0 / 0.6989 GB, free: 179.3 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162): time 0.008967/1.134, allocations: 5.654 MB / 0.7044 GB, free: 178.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.703e-05/1.134, allocations: 69.16 kB / 0.7045 GB, free: 178.6 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001862/1.136, allocations: 1.451 MB / 0.7059 GB, free: 178.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001004/1.136, allocations: 31.67 kB / 0.706 GB, free: 178.4 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004065/1.137, allocations: 1.071 MB / 0.707 GB, free: 178 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002982/1.137, allocations: 0.5307 MB / 0.7075 GB, free: 177.7 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.252e-05/1.137, allocations: 0 / 0.7075 GB, free: 177.7 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.906e-05/1.137, allocations: 378.4 kB / 0.7079 GB, free: 177.4 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/1.138, allocations: 0.8804 MB / 0.7087 GB, free: 177.4 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001164/1.139, allocations: 1.301 MB / 0.71 GB, free: 176.9 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001306/1.141, allocations: 1.115 MB / 0.7111 GB, free: 176.9 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/1.141, allocations: 6.328 kB / 0.7111 GB, free: 176.9 MB / 0.4948 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.003905/1.144, allocations: 2.786 MB / 0.7138 GB, free: 176.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/1.145, allocations: 7.688 kB / 0.7138 GB, free: 176.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/1.145, allocations: 13.38 kB / 0.7138 GB, free: 176.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001035/1.146, allocations: 451 kB / 0.7143 GB, free: 176.6 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001768/1.147, allocations: 443.1 kB / 0.7147 GB, free: 176.6 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0054/1.153, allocations: 6.525 MB / 0.7211 GB, free: 172.9 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/1.155, allocations: 71.42 kB / 0.7211 GB, free: 172.9 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001627/1.155, allocations: 76.11 kB / 0.7212 GB, free: 172.9 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.0003377/1.155, allocations: 149.4 kB / 0.7214 GB, free: 172.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002908/1.156, allocations: 193.3 kB / 0.7215 GB, free: 172.7 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004585/1.16, allocations: 2.893 MB / 0.7244 GB, free: 172.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/1.16, allocations: 17.91 kB / 0.7244 GB, free: 172.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/1.16, allocations: 5.906 kB / 0.7244 GB, free: 172.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.513e-05/1.16, allocations: 10.53 kB / 0.7244 GB, free: 172.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008665/1.169, allocations: 5.738 MB / 0.73 GB, free: 172 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.383e-06/1.169, allocations: 3.594 kB / 0.73 GB, free: 172 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001105/1.17, allocations: 246.2 kB / 0.7302 GB, free: 171.9 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002023/1.172, allocations: 0.8427 MB / 0.7311 GB, free: 171.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/1.172, allocations: 18.2 kB / 0.7311 GB, free: 171.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009078/1.181, allocations: 9.574 MB / 0.7404 GB, free: 165.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/1.181, allocations: 8.781 kB / 0.7404 GB, free: 165.7 MB / 0.4948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005605/1.187, allocations: 4.443 MB / 0.7448 GB, free: 163.7 MB / 0.4948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006792/1.194, allocations: 6.222 MB / 0.7508 GB, free: 160.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000988/1.195, allocations: 488.5 kB / 0.7513 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003123/1.195, allocations: 11.44 kB / 0.7513 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/1.196, allocations: 65.2 kB / 0.7514 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001663/1.196, allocations: 86.83 kB / 0.7515 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001101/1.197, allocations: 49.28 kB / 0.7515 GB, free: 160.5 MB / 0.4948 GB Notification: Performance of sort global known variables: time 0.001331/1.198, allocations: 1.097 MB / 0.7526 GB, free: 160 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.00242/1.2, allocations: 0.5528 MB / 0.7531 GB, free: 160 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.0006238/1.201, allocations: 385.5 kB / 0.7535 GB, free: 159.9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003626/1.205, allocations: 2.533 MB / 0.756 GB, free: 158.8 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/1.205, allocations: 1.531 kB / 0.756 GB, free: 158.8 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002046/1.207, allocations: 1.538 MB / 0.7575 GB, free: 158.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002064/1.209, allocations: 399.6 kB / 0.7579 GB, free: 158 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008473/1.217, allocations: 4.753 MB / 0.7625 GB, free: 155.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002073/1.219, allocations: 2.431 MB / 0.7649 GB, free: 153.5 MB / 0.4948 GB Notification: Performance of SimCode: time 7.41e-07/1.219, allocations: 1.406 kB / 0.7649 GB, free: 153.5 MB / 0.4948 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)