Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.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) 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(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",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.001132/0.001132, allocations: 207 kB / 8.542 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.129/1.129, allocations: 225.5 MB / 234.4 MB, free: 3.422 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008431/0.0008431, allocations: 96.44 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09318/0.09405, allocations: 56.9 MB / 343.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08117/0.1752, allocations: 51.47 MB / 394.7 MB, free: 5.094 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2178/0.393, allocations: 89.58 MB / 484.3 MB, free: 3.977 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001937/0.3933, allocations: 79.7 kB / 484.4 MB, free: 3.938 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1224 * Number of variables: 1224 Notification: Performance of Generate backend data structure: time 0.4448/0.8381, allocations: 162.9 MB / 0.6321 GB, free: 65.07 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.8382, allocations: 9.656 kB / 0.6321 GB, free: 65.07 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00617/0.8444, allocations: 0.9942 MB / 0.6331 GB, free: 64.84 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005354/0.8497, allocations: 2.728 MB / 0.6357 GB, free: 64.25 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001927/0.8499, allocations: 140.7 kB / 0.6359 GB, free: 64.25 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007437/0.8507, allocations: 250.5 kB / 0.6361 GB, free: 64.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007638/0.8583, allocations: 4.633 MB / 0.6406 GB, free: 64.22 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01012/0.8685, allocations: 5.924 MB / 0.6464 GB, free: 61.95 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.065e-05/0.8686, allocations: 5.375 kB / 0.6464 GB, free: 61.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003621/0.869, allocations: 7.594 kB / 0.6464 GB, free: 61.94 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00027/0.8693, allocations: 328.9 kB / 0.6467 GB, free: 61.86 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02238/0.8916, allocations: 20.14 MB / 0.6664 GB, free: 50.25 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.8929, allocations: 1.286 MB / 0.6677 GB, free: 49.87 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007689/0.8937, allocations: 0.7075 MB / 0.6684 GB, free: 49.63 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001542/0.8938, allocations: 191.9 kB / 0.6685 GB, free: 49.44 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.843e-05/0.8939, allocations: 42.59 kB / 0.6686 GB, free: 49.39 MB / 442.7 MB Notification: Performance of pre-optimization done (n=100): time 2.945e-06/0.8939, allocations: 4 kB / 0.6686 GB, free: 49.39 MB / 442.7 MB Notification: Performance of matching and sorting (n=100): time 0.001919/0.8958, allocations: 1.321 MB / 0.6699 GB, free: 48.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.115e-05/0.8958, allocations: 61.22 kB / 0.6699 GB, free: 48.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001281/0.8971, allocations: 1.257 MB / 0.6712 GB, free: 48.36 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.432e-05/0.8972, allocations: 25.7 kB / 0.6712 GB, free: 48.32 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005578/0.8978, allocations: 1.864 MB / 0.673 GB, free: 46.93 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/0.8979, allocations: 351.5 kB / 0.6733 GB, free: 46.66 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.189e-05/0.898, allocations: 0 / 0.6733 GB, free: 46.66 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001497/0.8982, allocations: 454.9 kB / 0.6738 GB, free: 46.29 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009779/0.8992, allocations: 0.8977 MB / 0.6747 GB, free: 45.98 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001319/0.9005, allocations: 2.006 MB / 0.6766 GB, free: 44.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001767/0.9023, allocations: 1.468 MB / 0.678 GB, free: 43.61 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.482e-05/0.9023, allocations: 12.91 kB / 0.6781 GB, free: 43.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=289) (initialization): time 0.003648/0.906, allocations: 2.823 MB / 0.6808 GB, free: 42.63 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.906, allocations: 5.844 kB / 0.6808 GB, free: 42.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.979e-05/0.906, allocations: 39.47 kB / 0.6809 GB, free: 42.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.936e-05/0.9061, allocations: 60.31 kB / 0.6809 GB, free: 42.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/0.9077, allocations: 0.5361 MB / 0.6814 GB, free: 42.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.668e-05/0.9077, allocations: 82.33 kB / 0.6815 GB, free: 42.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001274/0.909, allocations: 256.5 kB / 0.6818 GB, free: 42.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001577/0.9092, allocations: 126.3 kB / 0.6819 GB, free: 42.39 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 178 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (285): * Single equations (assignments): 281 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002175/0.9094, allocations: 195.4 kB / 0.6821 GB, free: 42.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001606/0.9096, allocations: 130.7 kB / 0.6822 GB, free: 42.13 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002384/0.912, allocations: 1.64 MB / 0.6838 GB, free: 41.55 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001423/0.9134, allocations: 1.17 MB / 0.6849 GB, free: 41.18 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/0.9134, allocations: 0 / 0.6849 GB, free: 41.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.9134, allocations: 11.08 kB / 0.6849 GB, free: 41.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01309/0.9265, allocations: 14.16 MB / 0.6988 GB, free: 28.87 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.755e-05/0.9266, allocations: 24 kB / 0.6988 GB, free: 28.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008136/0.9274, allocations: 219.6 kB / 0.699 GB, free: 28.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.161e-05/0.9274, allocations: 28 kB / 0.699 GB, free: 28.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.931e-05/0.9275, allocations: 32.66 kB / 0.6991 GB, free: 28.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.739e-05/0.9275, allocations: 41.8 kB / 0.6991 GB, free: 28.53 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.405e-05/0.9276, allocations: 39.81 kB / 0.6991 GB, free: 28.49 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002884/0.9305, allocations: 4.105 MB / 0.7031 GB, free: 23.66 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003435/0.9339, allocations: 5.334 MB / 0.7084 GB, free: 17.62 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005128/0.9344, allocations: 351 kB / 0.7087 GB, free: 17.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001971/0.9346, allocations: 27.98 kB / 0.7087 GB, free: 17.23 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007988/0.9354, allocations: 51.95 kB / 0.7088 GB, free: 17.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.9356, allocations: 123.4 kB / 0.7089 GB, free: 17.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.774e-05/0.9357, allocations: 55.98 kB / 0.7089 GB, free: 17 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0009844/0.9367, allocations: 0.9369 MB / 0.7099 GB, free: 16.06 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003065/0.9397, allocations: 0.9163 MB / 0.7107 GB, free: 15.14 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 93 * Number of states: 1 (currentSensor0.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002767/0.94, allocations: 206 kB / 0.7109 GB, free: 14.93 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002024/0.942, allocations: 1.982 MB / 0.7129 GB, free: 12.95 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.441e-06/0.9421, allocations: 4 kB / 0.7129 GB, free: 12.95 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000659/0.9427, allocations: 0.6729 MB / 0.7135 GB, free: 12.28 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001583/0.9443, allocations: 329 kB / 0.7139 GB, free: 11.97 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008826/0.9532, allocations: 5.826 MB / 0.7195 GB, free: 5.797 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002635/0.9558, allocations: 3.279 MB / 0.7227 GB, free: 18.48 MB / 458.7 MB Notification: Performance of SimCode: time 7.52e-07/0.9558, allocations: 0 / 0.7227 GB, free: 18.48 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar.fmu > Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1)