Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.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.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start",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.000976/0.000976, allocations: 198.6 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.125/1.125, allocations: 225.5 MB / 234.4 MB, free: 3.449 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000841/0.000841, allocations: 92.33 kB / 286.3 MB, free: 5.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0857/0.08656, allocations: 56.91 MB / 343.2 MB, free: 8.648 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07502/0.1616, allocations: 51.47 MB / 394.7 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2069/0.3685, allocations: 110.7 MB / 0.4936 GB, free: 14.96 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.3688, allocations: 86.17 kB / 0.4937 GB, free: 14.92 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.1602/0.5289, allocations: 68.15 MB / 0.5602 GB, free: 15.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.529, allocations: 12 kB / 0.5602 GB, free: 15.45 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001257/0.5302, allocations: 487 kB / 0.5607 GB, free: 14.97 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00388/0.5341, allocations: 2.395 MB / 0.563 GB, free: 12.53 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.405e-05/0.5342, allocations: 107.9 kB / 0.5631 GB, free: 12.42 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003718/0.5346, allocations: 176 kB / 0.5633 GB, free: 12.25 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005001/0.5396, allocations: 3.374 MB / 0.5666 GB, free: 8.871 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005322/0.5449, allocations: 3.846 MB / 0.5704 GB, free: 4.859 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.596e-05/0.545, allocations: 8 kB / 0.5704 GB, free: 4.852 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002389/0.5453, allocations: 8 kB / 0.5704 GB, free: 4.844 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001018/0.5454, allocations: 126 kB / 0.5705 GB, free: 4.719 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1471/0.6925, allocations: 13.08 MB / 0.5833 GB, free: 62.92 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/0.6939, allocations: 1.316 MB / 0.5845 GB, free: 62.9 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00179/0.6957, allocations: 1.588 MB / 0.5861 GB, free: 62.87 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002512/0.696, allocations: 144.2 kB / 0.5862 GB, free: 62.77 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.12e-05/0.696, allocations: 54.47 kB / 0.5863 GB, free: 62.73 MB / 442.7 MB Notification: Performance of pre-optimization done (n=167): time 3.286e-06/0.696, allocations: 0 / 0.5863 GB, free: 62.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=183): time 0.009084/0.7051, allocations: 6.401 MB / 0.5925 GB, free: 61.77 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.087e-05/0.7052, allocations: 67.94 kB / 0.5926 GB, free: 61.71 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001873/0.707, allocations: 1.742 MB / 0.5943 GB, free: 61.5 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.696e-05/0.7072, allocations: 28.44 kB / 0.5943 GB, free: 61.47 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003607/0.7075, allocations: 1.117 MB / 0.5954 GB, free: 61.01 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002949/0.7078, allocations: 0.5877 MB / 0.596 GB, free: 60.69 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.965e-05/0.7079, allocations: 0 / 0.596 GB, free: 60.69 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.549e-05/0.708, allocations: 387.5 kB / 0.5964 GB, free: 60.38 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001201/0.7092, allocations: 1.079 MB / 0.5974 GB, free: 60.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.7106, allocations: 1.474 MB / 0.5989 GB, free: 59.96 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001411/0.712, allocations: 1.298 MB / 0.6001 GB, free: 59.95 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.361e-06/0.712, allocations: 3.594 kB / 0.6001 GB, free: 59.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=250) (initialization): time 0.004232/0.7163, allocations: 3.367 MB / 0.6034 GB, free: 59.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.7163, allocations: 8.594 kB / 0.6034 GB, free: 59.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.7163, allocations: 11.34 kB / 0.6034 GB, free: 59.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001665/0.718, allocations: 0.7928 MB / 0.6042 GB, free: 59.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001719/0.7197, allocations: 457.5 kB / 0.6046 GB, free: 59.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006687/0.7264, allocations: 9.619 MB / 0.614 GB, free: 53.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.7278, allocations: 68.22 kB / 0.6141 GB, free: 53.54 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001598/0.728, allocations: 78.86 kB / 0.6142 GB, free: 53.54 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (217): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002769/0.7282, allocations: 156.6 kB / 0.6143 GB, free: 53.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002982/0.7285, allocations: 226 kB / 0.6145 GB, free: 53.31 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004256/0.7328, allocations: 3.163 MB / 0.6176 GB, free: 53.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.7328, allocations: 25.81 kB / 0.6177 GB, free: 53.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.7328, allocations: 3.812 kB / 0.6177 GB, free: 53.12 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.7329, allocations: 6.844 kB / 0.6177 GB, free: 53.12 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008484/0.7414, allocations: 6.352 MB / 0.6239 GB, free: 52.56 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.7414, allocations: 6.781 kB / 0.6239 GB, free: 52.56 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001347/0.7427, allocations: 307 kB / 0.6242 GB, free: 52.56 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002074/0.7448, allocations: 0.898 MB / 0.625 GB, free: 52.49 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001207/0.7449, allocations: 16.47 kB / 0.6251 GB, free: 52.49 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008719/0.7537, allocations: 12.66 MB / 0.6374 GB, free: 43.35 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.7537, allocations: 3.969 kB / 0.6374 GB, free: 43.35 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005854/0.7596, allocations: 4.92 MB / 0.6422 GB, free: 41.26 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008127/0.7677, allocations: 6.993 MB / 0.6491 GB, free: 38.14 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001082/0.7688, allocations: 0.5469 MB / 0.6496 GB, free: 37.81 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003717/0.7692, allocations: 8.375 kB / 0.6496 GB, free: 37.81 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001258/0.7705, allocations: 91.88 kB / 0.6497 GB, free: 37.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00024/0.7707, allocations: 118.5 kB / 0.6498 GB, free: 37.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001402/0.7708, allocations: 55.05 kB / 0.6499 GB, free: 37.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.00171/0.7726, allocations: 1.309 MB / 0.6511 GB, free: 37.23 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002523/0.7751, allocations: 0.6534 MB / 0.6518 GB, free: 37.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aims.i_0_s,aims.idq_sr[1],aims.idq_sr[2],aims.idq_rr[1],aims.idq_rr[2],aims.i_0_r,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,switchedRheostat.booleanStep[1].y,switchedRheostat.booleanStep[2].y,switchedRheostat.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (148): * Single equations (assignments): 140 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(2,100.0%) 14,(1,100.0%) 1,(2,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004846/0.7756, allocations: 335.8 kB / 0.6521 GB, free: 37.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00398/0.7796, allocations: 3.366 MB / 0.6554 GB, free: 35.51 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.7796, allocations: 4.312 kB / 0.6554 GB, free: 35.51 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002783/0.7824, allocations: 2.319 MB / 0.6576 GB, free: 34.23 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002178/0.7846, allocations: 0.5017 MB / 0.6581 GB, free: 34.11 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008491/0.7931, allocations: 5.575 MB / 0.6636 GB, free: 32 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002272/0.7954, allocations: 2.74 MB / 0.6663 GB, free: 30.9 MB / 442.7 MB Notification: Performance of SimCode: time 5.31e-07/0.7954, allocations: 0 / 0.6663 GB, free: 30.9 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMS_Start.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMS_Start.pipe 2>&1)