Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_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.001214/0.001214, allocations: 172.4 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.447/1.447, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0009098/0.0009099, allocations: 90.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.711e-05/2.715e-05, allocations: 4 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.084/0.08404, allocations: 47.57 MB / 370.1 MB, free: 1.59 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3641/0.4482, allocations: 151.3 MB / 0.5093 GB, free: 6.906 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002826/0.4486, allocations: 107 kB / 0.5094 GB, free: 6.848 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.635/2.083, allocations: 357.2 MB / 0.8582 GB, free: 25.63 MB / 442.8 MB Notification: Performance of FrontEnd: time 1.693e-06/2.083, allocations: 0 / 0.8582 GB, free: 25.63 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.0009815/2.084, allocations: 254.8 kB / 0.8584 GB, free: 25.63 MB / 442.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3076 * Number of variables: 3076 Notification: Performance of Generate backend data structure: time 0.04146/2.126, allocations: 10.47 MB / 0.8686 GB, free: 23.9 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.101e-05/2.126, allocations: 7.344 kB / 0.8686 GB, free: 23.9 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008363/2.134, allocations: 1.56 MB / 0.8702 GB, free: 23.79 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03252/2.167, allocations: 5.399 MB / 0.8754 GB, free: 23.19 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02653/2.193, allocations: 9.478 MB / 0.8847 GB, free: 22.14 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001066/2.195, allocations: 0.8062 MB / 0.8855 GB, free: 22.12 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004998/2.2, allocations: 1.07 MB / 0.8865 GB, free: 22.11 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05147/2.251, allocations: 17.91 MB / 0.904 GB, free: 20.89 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005925/2.252, allocations: 18.3 kB / 0.904 GB, free: 20.88 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004021/2.256, allocations: 465.2 kB / 0.9045 GB, free: 20.88 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008381/2.257, allocations: 0.743 MB / 0.9052 GB, free: 20.86 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03398/2.291, allocations: 16.55 MB / 0.9214 GB, free: 20.77 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1098/2.4, allocations: 58.08 MB / 0.9781 GB, free: 14.01 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02902/2.429, allocations: 26.01 MB / 1.003 GB, free: 10.22 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01508/2.445, allocations: 7.066 MB / 1.01 GB, free: 4.738 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05621/2.501, allocations: 22.77 MB / 1.033 GB, free: 3.105 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3327/2.834, allocations: 5.706 MB / 1.038 GB, free: 72.02 MB / 490.8 MB Notification: Performance of pre-optimization done (n=696): time 2.467e-05/2.834, allocations: 0 / 1.038 GB, free: 72.02 MB / 490.8 MB Notification: Performance of matching and sorting (n=714): time 0.05933/2.893, allocations: 28.94 MB / 1.066 GB, free: 69.61 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/2.893, allocations: 432.6 kB / 1.067 GB, free: 69.16 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006721/2.9, allocations: 3.469 MB / 1.07 GB, free: 68.82 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001314/2.901, allocations: 133.7 kB / 1.07 GB, free: 68.79 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003748/2.905, allocations: 4.308 MB / 1.075 GB, free: 66.78 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003032/2.908, allocations: 2.386 MB / 1.077 GB, free: 65.25 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007022/2.909, allocations: 134.3 kB / 1.077 GB, free: 65.25 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 0.0004927/2.909, allocations: 0.5948 MB / 1.078 GB, free: 64.93 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00659/2.916, allocations: 4.376 MB / 1.082 GB, free: 64.91 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007119/2.923, allocations: 6.093 MB / 1.088 GB, free: 63.13 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007945/2.931, allocations: 5.402 MB / 1.093 GB, free: 63.03 MB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.94e-05/2.931, allocations: 14.53 kB / 1.093 GB, free: 63.03 MB / 490.8 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.02185/2.953, allocations: 13.37 MB / 1.106 GB, free: 62.34 MB / 490.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.079e-05/2.953, allocations: 28.81 kB / 1.106 GB, free: 62.34 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.759e-05/2.953, allocations: 47.72 kB / 1.106 GB, free: 62.34 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007165/2.96, allocations: 3.851 MB / 1.11 GB, free: 62.23 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0059/2.966, allocations: 1.302 MB / 1.111 GB, free: 62.23 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01479/2.981, allocations: 16.63 MB / 1.128 GB, free: 52.69 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007138/2.988, allocations: 367.4 kB / 1.128 GB, free: 52.58 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001733/2.99, allocations: 303.6 kB / 1.128 GB, free: 52.52 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 202 * 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 (684): * Single equations (assignments): 643 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 4 {(1,100.0%) 4,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 4} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of prepare postOptimizeDAE: time 0.001321/2.991, allocations: 0.4891 MB / 1.129 GB, free: 52.19 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001489/2.993, allocations: 0.5352 MB / 1.129 GB, free: 51.9 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02004/3.013, allocations: 13.31 MB / 1.142 GB, free: 46.09 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001553/3.013, allocations: 159.3 kB / 1.142 GB, free: 46.02 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.979e-05/3.013, allocations: 7.938 kB / 1.142 GB, free: 46.02 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001055/3.013, allocations: 29.72 kB / 1.142 GB, free: 46.02 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05184/3.065, allocations: 26.76 MB / 1.169 GB, free: 32.9 MB / 490.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.424e-05/3.065, allocations: 0 / 1.169 GB, free: 32.9 MB / 490.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004305/3.07, allocations: 0.8773 MB / 1.169 GB, free: 32.23 MB / 490.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008992/3.079, allocations: 3.941 MB / 1.173 GB, free: 29.03 MB / 490.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002002/3.081, allocations: 158.1 kB / 1.173 GB, free: 28.89 MB / 490.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01711/3.098, allocations: 20.78 MB / 1.194 GB, free: 8.77 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/3.098, allocations: 3.953 kB / 1.194 GB, free: 8.766 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03874/3.137, allocations: 19.84 MB / 1.213 GB, free: 7.289 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006085/3.143, allocations: 1.637 MB / 1.215 GB, free: 5.809 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003001/3.146, allocations: 129.7 kB / 1.215 GB, free: 5.688 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005566/3.151, allocations: 292.7 kB / 1.215 GB, free: 5.477 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002157/3.154, allocations: 0.5146 MB / 1.216 GB, free: 5.148 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001352/3.155, allocations: 194.1 kB / 1.216 GB, free: 4.977 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.006189/3.161, allocations: 2.648 MB / 1.218 GB, free: 2.574 MB / 0.4949 GB Notification: Performance of sort global known variables: time 5.01e-07/3.161, allocations: 0 / 1.218 GB, free: 2.574 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.01147/3.173, allocations: 2.014 MB / 1.22 GB, free: 0.5742 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (476): * Single equations (assignments): 432 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 3,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,14 74} Notification: Performance of Backend phase and start with SimCode phase: time 0.3542/3.527, allocations: 21.47 MB / 1.241 GB, free: 79.87 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01969/3.547, allocations: 11.59 MB / 1.253 GB, free: 79 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.026e-05/3.547, allocations: 3.031 kB / 1.253 GB, free: 79 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.01327/3.56, allocations: 6.6 MB / 1.259 GB, free: 78.11 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009222/3.569, allocations: 1.201 MB / 1.26 GB, free: 78.07 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06727/3.636, allocations: 23.07 MB / 1.283 GB, free: 74.64 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01266/3.649, allocations: 7.184 MB / 1.29 GB, free: 73.61 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.007223/3.656, allocations: 1.654 MB / 1.291 GB, free: 73.43 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007644/3.664, allocations: 4.098 MB / 1.295 GB, free: 73.42 MB / 0.4949 GB Notification: Performance of SimCode: time 9.42e-07/3.664, allocations: 7.469 kB / 1.295 GB, free: 73.41 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5628/4.227, allocations: 192.7 MB / 1.484 GB, free: 67.64 MB / 0.4949 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001944/4.227, allocations: 268.9 kB / 1.484 GB, free: 67.31 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.845/11.07, allocations: 0 / 1.484 GB, free: 67.31 MB / 0.4949 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.mat does not exist to compare? outputFormat=mat