Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00162/0.00162, allocations: 186.7 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.001/2.001, allocations: 205.4 MB / 222.5 MB, free: 9.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001141/0.00114, allocations: 96.42 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004078/0.000408, allocations: 12 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3344/0.3348, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2013/0.5361, allocations: 107.3 MB / 481.9 MB, free: 5.301 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000318/0.5365, allocations: 99.95 kB / 482 MB, free: 5.203 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4627/0.9993, allocations: 44.46 MB / 0.5142 GB, free: 95.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.937e-06/0.9994, allocations: 0 / 0.5142 GB, free: 95.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002582/0.9996, allocations: 56.69 kB / 0.5142 GB, free: 95.81 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: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.008579/1.008, allocations: 2.308 MB / 0.5165 GB, free: 94.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/1.008, allocations: 12.34 kB / 0.5165 GB, free: 94.54 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001352/1.01, allocations: 291.3 kB / 0.5168 GB, free: 94.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001536/1.011, allocations: 271.1 kB / 0.517 GB, free: 94.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005144/1.016, allocations: 1.44 MB / 0.5184 GB, free: 93.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001726/1.017, allocations: 139.4 kB / 0.5186 GB, free: 93.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007359/1.017, allocations: 191.4 kB / 0.5187 GB, free: 93.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007136/1.025, allocations: 2.41 MB / 0.5211 GB, free: 92.13 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001154/1.025, allocations: 6.219 kB / 0.5211 GB, free: 92.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002969/1.025, allocations: 80.81 kB / 0.5212 GB, free: 92.07 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001224/1.025, allocations: 82.56 kB / 0.5213 GB, free: 92.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00621/1.031, allocations: 1.892 MB / 0.5231 GB, free: 91.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01986/1.051, allocations: 7.447 MB / 0.5304 GB, free: 84.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003334/1.055, allocations: 1.386 MB / 0.5317 GB, free: 82.95 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004274/1.055, allocations: 130 kB / 0.5319 GB, free: 82.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001805/1.057, allocations: 0.7061 MB / 0.5325 GB, free: 82.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=102): time 4.218e-06/1.057, allocations: 0 / 0.5325 GB, free: 82.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=130): time 0.03164/1.089, allocations: 8.375 MB / 0.5407 GB, free: 73.56 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/1.089, allocations: 171.5 kB / 0.5409 GB, free: 73.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002983/1.092, allocations: 1.224 MB / 0.5421 GB, free: 72.12 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003305/1.092, allocations: 57.64 kB / 0.5421 GB, free: 72.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008463/1.093, allocations: 0.887 MB / 0.543 GB, free: 71.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006463/1.094, allocations: 453.2 kB / 0.5434 GB, free: 70.72 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/1.094, allocations: 32 kB / 0.5435 GB, free: 70.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/1.094, allocations: 370.7 kB / 0.5438 GB, free: 70.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001847/1.096, allocations: 0.6949 MB / 0.5445 GB, free: 69.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002209/1.098, allocations: 1.059 MB / 0.5455 GB, free: 68.43 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002233/1.1, allocations: 0.8574 MB / 0.5464 GB, free: 67.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-05/1.101, allocations: 0 / 0.5464 GB, free: 67.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.007088/1.108, allocations: 2.429 MB / 0.5487 GB, free: 65.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.697e-05/1.108, allocations: 8 kB / 0.5487 GB, free: 65.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.624e-05/1.108, allocations: 8 kB / 0.5488 GB, free: 65.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002845/1.111, allocations: 0.6611 MB / 0.5494 GB, free: 64.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002273/1.113, allocations: 311.5 kB / 0.5497 GB, free: 64.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01221/1.125, allocations: 6.69 MB / 0.5562 GB, free: 57.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002371/1.128, allocations: 99.97 kB / 0.5563 GB, free: 57.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003562/1.128, allocations: 59.98 kB / 0.5564 GB, free: 57.02 MB / 378.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (149): * Single equations (assignments): 145 * 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.001863/1.13, allocations: 0.6394 MB / 0.557 GB, free: 56.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005498/1.131, allocations: 154.1 kB / 0.5572 GB, free: 56.22 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007056/1.138, allocations: 2.406 MB / 0.5595 GB, free: 53.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-05/1.138, allocations: 12 kB / 0.5595 GB, free: 53.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.884e-05/1.138, allocations: 8.047 kB / 0.5595 GB, free: 53.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.435e-05/1.138, allocations: 11.95 kB / 0.5595 GB, free: 53.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0139/1.152, allocations: 4.797 MB / 0.5642 GB, free: 48.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.998e-05/1.152, allocations: 0 / 0.5642 GB, free: 48.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001601/1.153, allocations: 188.1 kB / 0.5644 GB, free: 48.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003434/1.157, allocations: 0.7422 MB / 0.5651 GB, free: 47.95 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002963/1.157, allocations: 35.97 kB / 0.5652 GB, free: 47.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01412/1.171, allocations: 8.417 MB / 0.5734 GB, free: 39.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.171, allocations: 7.953 kB / 0.5734 GB, free: 39.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008976/1.18, allocations: 3.457 MB / 0.5768 GB, free: 35.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/1.182, allocations: 402.9 kB / 0.5771 GB, free: 35.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005173/1.182, allocations: 28 kB / 0.5772 GB, free: 35.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001669/1.184, allocations: 87.91 kB / 0.5773 GB, free: 35.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004047/1.184, allocations: 93.17 kB / 0.5773 GB, free: 34.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001313/1.185, allocations: 39.98 kB / 0.5774 GB, free: 34.88 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002104/1.187, allocations: 0.9518 MB / 0.5783 GB, free: 33.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.31e-07/1.187, allocations: 0 / 0.5783 GB, free: 33.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002661/1.189, allocations: 0.5195 MB / 0.5788 GB, free: 33.41 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (100): * Single equations (assignments): 94 * 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 {(7,59.2%) 21,(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.0107/1.2, allocations: 4.926 MB / 0.5836 GB, free: 28.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006473/1.207, allocations: 2.39 MB / 0.586 GB, free: 26 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.207, allocations: 4 kB / 0.586 GB, free: 25.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004476/1.211, allocations: 1.642 MB / 0.5876 GB, free: 24.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003208/1.215, allocations: 383.5 kB / 0.5879 GB, free: 23.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03457/1.249, allocations: 19.14 MB / 0.6066 GB, free: 4.141 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001837/1.251, allocations: 1.733 MB / 0.6083 GB, free: 2.371 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001714/1.253, allocations: 0.7804 MB / 0.6091 GB, free: 1.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.245e-06/1.253, allocations: 0 / 0.6091 GB, free: 1.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.149/5.401, allocations: 72.7 MB / 0.6801 GB, free: 102.5 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Conveyor.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Conveyor_res.mat does not exist to compare? outputFormat=mat