Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,fileNamePrefix="ModelicaTest_trunk_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 trunk/package.mo): time 0.001187/0.001187, allocations: 194.9 kB / 8.538 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009972/0.0009972, allocations: 89.16 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1771/0.1771, allocations: 45.14 MB / 383.3 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2025/0.3796, allocations: 69.37 MB / 452.7 MB, free: 76.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08914/0.4688, allocations: 63.25 MB / 0.5039 GB, free: 12.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3038/0.7726, allocations: 123.8 MB / 0.6248 GB, free: 11.47 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001906/0.7729, allocations: 76.47 kB / 0.6248 GB, free: 11.43 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.1676/0.9405, allocations: 64.2 MB / 0.6875 GB, free: 3.43 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.9405, allocations: 12 kB / 0.6875 GB, free: 3.418 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001742/0.9423, allocations: 415.5 kB / 0.6879 GB, free: 3.008 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004886/0.9472, allocations: 2.172 MB / 0.6901 GB, free: 0.7812 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.417e-05/0.9473, allocations: 96 kB / 0.6901 GB, free: 0.6875 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004351/0.9478, allocations: 167.9 kB / 0.6903 GB, free: 0.5234 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004829/0.9526, allocations: 2.784 MB / 0.693 GB, free: 13.73 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005121/0.9577, allocations: 3.254 MB / 0.6962 GB, free: 10.34 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.19e-05/0.9578, allocations: 7.891 kB / 0.6962 GB, free: 10.33 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002232/0.9581, allocations: 4 kB / 0.6962 GB, free: 10.32 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001307/0.9582, allocations: 137.5 kB / 0.6963 GB, free: 10.19 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01797/0.9762, allocations: 11.11 MB / 0.7072 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001863/0.9781, allocations: 1.217 MB / 0.7084 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001548/0.9796, allocations: 1.126 MB / 0.7095 GB, free: 12.45 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003551/0.98, allocations: 223.5 kB / 0.7097 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.9801, allocations: 55.81 kB / 0.7097 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=148): time 3.757e-06/0.9801, allocations: 0 / 0.7097 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of matching and sorting (n=162): time 0.0108/0.9909, allocations: 5.659 MB / 0.7153 GB, free: 6.418 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.9909, allocations: 68.72 kB / 0.7153 GB, free: 6.34 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002343/0.9933, allocations: 1.455 MB / 0.7168 GB, free: 4.887 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001289/0.9934, allocations: 29.7 kB / 0.7168 GB, free: 4.852 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005468/0.994, allocations: 1.065 MB / 0.7178 GB, free: 3.77 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004006/0.9944, allocations: 0.5311 MB / 0.7183 GB, free: 3.23 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.423e-05/0.9945, allocations: 0 / 0.7183 GB, free: 3.23 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001442/0.9947, allocations: 381.9 kB / 0.7187 GB, free: 2.852 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.9959, allocations: 0.8747 MB / 0.7196 GB, free: 1.977 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.9974, allocations: 1.307 MB / 0.7208 GB, free: 500 kB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001567/0.999, allocations: 1.109 MB / 0.7219 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/0.999, allocations: 4 kB / 0.7219 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.004512/1.004, allocations: 2.794 MB / 0.7247 GB, free: 12.57 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.686e-05/1.004, allocations: 8.406 kB / 0.7247 GB, free: 12.56 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.14e-05/1.004, allocations: 16 kB / 0.7247 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001101/1.005, allocations: 450.1 kB / 0.7251 GB, free: 12.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001836/1.007, allocations: 443.3 kB / 0.7255 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006588/1.013, allocations: 6.53 MB / 0.7319 GB, free: 4.781 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/1.015, allocations: 67.83 kB / 0.732 GB, free: 4.711 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001719/1.015, allocations: 75.98 kB / 0.732 GB, free: 4.637 MB / 0.5105 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.0003335/1.015, allocations: 158.6 kB / 0.7322 GB, free: 4.48 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003405/1.015, allocations: 197.5 kB / 0.7324 GB, free: 4.285 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005148/1.021, allocations: 2.88 MB / 0.7352 GB, free: 1.383 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.558e-05/1.021, allocations: 19.98 kB / 0.7352 GB, free: 1.363 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/1.021, allocations: 8 kB / 0.7352 GB, free: 1.355 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/1.021, allocations: 7.969 kB / 0.7352 GB, free: 1.348 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009671/1.03, allocations: 5.746 MB / 0.7408 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/1.03, allocations: 4 kB / 0.7408 GB, free: 11.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001206/1.032, allocations: 240 kB / 0.7411 GB, free: 11.26 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002192/1.034, allocations: 0.8336 MB / 0.7419 GB, free: 10.42 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/1.034, allocations: 23.98 kB / 0.7419 GB, free: 10.39 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01112/1.045, allocations: 9.576 MB / 0.7513 GB, free: 480 kB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/1.045, allocations: 7.844 kB / 0.7513 GB, free: 472 kB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.1489/1.194, allocations: 4.442 MB / 0.7556 GB, free: 200.2 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006731/1.201, allocations: 6.22 MB / 0.7617 GB, free: 199.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008251/1.202, allocations: 495.1 kB / 0.7622 GB, free: 199.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003197/1.202, allocations: 7 kB / 0.7622 GB, free: 199.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/1.203, allocations: 66 kB / 0.7622 GB, free: 199.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001604/1.203, allocations: 85.52 kB / 0.7623 GB, free: 199.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001404/1.203, allocations: 50.62 kB / 0.7624 GB, free: 199.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.001376/1.205, allocations: 1.098 MB / 0.7634 GB, free: 199.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002292/1.207, allocations: 0.5632 MB / 0.764 GB, free: 199.1 MB / 0.5261 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.0005373/1.208, allocations: 379.7 kB / 0.7643 GB, free: 199 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002973/1.211, allocations: 2.539 MB / 0.7668 GB, free: 198.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/1.211, allocations: 0 / 0.7668 GB, free: 198.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001782/1.212, allocations: 1.535 MB / 0.7683 GB, free: 198.3 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00179/1.214, allocations: 398.5 kB / 0.7687 GB, free: 198.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007431/1.222, allocations: 4.756 MB / 0.7733 GB, free: 197.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002023/1.224, allocations: 2.426 MB / 0.7757 GB, free: 196.6 MB / 0.5261 GB Notification: Performance of SimCode: time 5.41e-07/1.224, allocations: 0 / 0.7757 GB, free: 196.6 MB / 0.5261 GB (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Electrical_Machines_SMPM_VoltageSourceWithLosses.fmu > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)