Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.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.IMC_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor",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.00124/0.00124, allocations: 205.6 kB / 8.54 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.111/1.111, allocations: 225.5 MB / 234.4 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008681/0.0008679, allocations: 91.78 kB / 286.3 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08627/0.08717, allocations: 56.9 MB / 343.2 MB, free: 8.598 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07685/0.164, allocations: 51.48 MB / 394.7 MB, free: 5.062 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.211/0.3751, allocations: 108.7 MB / 0.4916 GB, free: 0.7617 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/0.3753, allocations: 91 kB / 0.4917 GB, free: 0.7148 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.118/0.4933, allocations: 46.98 MB / 0.5375 GB, free: 6.805 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.97e-05/0.4934, allocations: 12 kB / 0.5376 GB, free: 6.793 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008918/0.4943, allocations: 285 kB / 0.5378 GB, free: 6.512 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002745/0.497, allocations: 1.447 MB / 0.5392 GB, free: 5.008 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.712e-05/0.4971, allocations: 64 kB / 0.5393 GB, free: 4.945 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002668/0.4974, allocations: 111.9 kB / 0.5394 GB, free: 4.836 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002939/0.5003, allocations: 1.765 MB / 0.5411 GB, free: 3.07 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003209/0.5035, allocations: 2.121 MB / 0.5432 GB, free: 0.875 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.217e-05/0.5036, allocations: 7.906 kB / 0.5432 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001586/0.5038, allocations: 4 kB / 0.5432 GB, free: 0.8633 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.61e-05/0.5038, allocations: 91.61 kB / 0.5433 GB, free: 0.7734 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01001/0.5139, allocations: 7.095 MB / 0.5502 GB, free: 9.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001074/0.515, allocations: 0.7572 MB / 0.551 GB, free: 8.742 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.516, allocations: 0.757 MB / 0.5517 GB, free: 7.984 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002409/0.5163, allocations: 130.1 kB / 0.5518 GB, free: 7.836 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008351/0.5171, allocations: 0.6574 MB / 0.5525 GB, free: 7.148 MB / 426.7 MB Notification: Performance of pre-optimization done (n=102): time 2.154e-06/0.5171, allocations: 0 / 0.5525 GB, free: 7.148 MB / 426.7 MB Notification: Performance of matching and sorting (n=131): time 0.0104/0.5275, allocations: 5.843 MB / 0.5582 GB, free: 1.223 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.508e-05/0.5276, allocations: 171.5 kB / 0.5583 GB, free: 1.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001286/0.5289, allocations: 1.022 MB / 0.5593 GB, free: 15.98 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.635e-05/0.529, allocations: 29.7 kB / 0.5594 GB, free: 15.95 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004356/0.5295, allocations: 0.7479 MB / 0.5601 GB, free: 15.19 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000293/0.5298, allocations: 433.5 kB / 0.5605 GB, free: 14.76 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.654e-05/0.5298, allocations: 0 / 0.5605 GB, free: 14.76 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.53, allocations: 361.9 kB / 0.5609 GB, free: 14.4 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008935/0.5308, allocations: 0.6599 MB / 0.5615 GB, free: 13.74 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/0.532, allocations: 1.005 MB / 0.5625 GB, free: 12.6 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.5331, allocations: 0.826 MB / 0.5633 GB, free: 11.78 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.9e-06/0.5331, allocations: 7.938 kB / 0.5633 GB, free: 11.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.003783/0.5369, allocations: 2.343 MB / 0.5656 GB, free: 9.406 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.5369, allocations: 5.875 kB / 0.5656 GB, free: 9.402 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.5369, allocations: 12.78 kB / 0.5656 GB, free: 9.391 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001627/0.5385, allocations: 0.6524 MB / 0.5662 GB, free: 8.727 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001174/0.5397, allocations: 303.5 kB / 0.5665 GB, free: 8.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006703/0.5464, allocations: 5.904 MB / 0.5723 GB, free: 2.293 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009214/0.5474, allocations: 52.08 kB / 0.5724 GB, free: 2.242 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001266/0.5475, allocations: 63.98 kB / 0.5724 GB, free: 2.18 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 146 * 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: 2 * 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: 2 {(5,76.0%) 23,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002189/0.5477, allocations: 140.5 kB / 0.5725 GB, free: 2.035 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002195/0.548, allocations: 150.2 kB / 0.5727 GB, free: 1.887 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1026/0.6505, allocations: 2.23 MB / 0.5749 GB, free: 143.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/0.6506, allocations: 14.28 kB / 0.5749 GB, free: 143.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.03e-05/0.6506, allocations: 11.38 kB / 0.5749 GB, free: 143.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.6506, allocations: 6.797 kB / 0.5749 GB, free: 143.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006301/0.6569, allocations: 4.445 MB / 0.5792 GB, free: 142.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.6569, allocations: 3.906 kB / 0.5792 GB, free: 142.6 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007646/0.6577, allocations: 183.8 kB / 0.5794 GB, free: 142.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001762/0.6595, allocations: 0.7089 MB / 0.5801 GB, free: 142.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-05/0.6596, allocations: 18.06 kB / 0.5801 GB, free: 142.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006583/0.6662, allocations: 7.473 MB / 0.5874 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.6662, allocations: 3.375 kB / 0.5874 GB, free: 139 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004045/0.6703, allocations: 3.357 MB / 0.5907 GB, free: 138.6 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005027/0.6753, allocations: 4.774 MB / 0.5954 GB, free: 137.8 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005907/0.6759, allocations: 379.2 kB / 0.5957 GB, free: 137.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002367/0.6762, allocations: 11.5 kB / 0.5957 GB, free: 137.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00079/0.6769, allocations: 51.3 kB / 0.5958 GB, free: 137.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001436/0.6771, allocations: 76.56 kB / 0.5959 GB, free: 137.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.876e-05/0.6772, allocations: 38.23 kB / 0.5959 GB, free: 137.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0008634/0.6781, allocations: 0.767 MB / 0.5966 GB, free: 137.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001829/0.6799, allocations: 482 kB / 0.5971 GB, free: 137.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 3 {(5,76.0%) 23,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008109/0.6807, allocations: 499.1 kB / 0.5976 GB, free: 137.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002655/0.6834, allocations: 2.188 MB / 0.5997 GB, free: 137 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6834, allocations: 2.406 kB / 0.5997 GB, free: 137 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001906/0.6853, allocations: 1.425 MB / 0.6011 GB, free: 136.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/0.6866, allocations: 286.4 kB / 0.6014 GB, free: 136.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005121/0.6917, allocations: 3.512 MB / 0.6048 GB, free: 135.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001341/0.6931, allocations: 1.865 MB / 0.6066 GB, free: 135 MB / 442.7 MB Notification: Performance of SimCode: time 7.91e-07/0.6931, allocations: 0 / 0.6066 GB, free: 135 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat