Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.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.SynchronousInductionMachines.SMR_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL",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.002429/0.002429, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.241/2.241, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00113/0.001129, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.218e-05/4.237e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1121, allocations: 47.58 MB / 369.2 MB, free: 2.094 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4501/0.5622, allocations: 107.2 MB / 476.4 MB, free: 2.395 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003263/0.5626, allocations: 83.77 kB / 476.5 MB, free: 2.352 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2221/0.7847, allocations: 50.18 MB / 0.5143 GB, free: 1.238 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.205e-06/0.7847, allocations: 0 / 0.5143 GB, free: 1.238 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003142/0.7851, allocations: 67.94 kB / 0.5144 GB, free: 1.172 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 606 * Number of variables: 606 Notification: Performance of Generate backend data structure: time 0.009361/0.7944, allocations: 2.499 MB / 0.5168 GB, free: 14.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.255e-05/0.7945, allocations: 12.03 kB / 0.5168 GB, free: 14.6 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001128/0.7957, allocations: 337.4 kB / 0.5172 GB, free: 14.26 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001421/0.7971, allocations: 336.3 kB / 0.5175 GB, free: 13.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006198/0.8033, allocations: 1.772 MB / 0.5192 GB, free: 12.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002481/0.8036, allocations: 176.7 kB / 0.5194 GB, free: 11.93 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007288/0.8044, allocations: 231.9 kB / 0.5196 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00887/0.8132, allocations: 3.033 MB / 0.5226 GB, free: 8.516 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.69e-05/0.8134, allocations: 7.922 kB / 0.5226 GB, free: 8.508 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003828/0.8138, allocations: 99.98 kB / 0.5227 GB, free: 8.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001705/0.814, allocations: 100.6 kB / 0.5228 GB, free: 8.309 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007689/0.8217, allocations: 2.458 MB / 0.5252 GB, free: 5.836 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3162/1.138, allocations: 9.768 MB / 0.5347 GB, free: 94.86 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004778/1.143, allocations: 2.155 MB / 0.5368 GB, free: 93.97 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00282/1.146, allocations: 0.9321 MB / 0.5377 GB, free: 93.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005714/1.146, allocations: 222.3 kB / 0.5379 GB, free: 93.77 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.843e-05/1.146, allocations: 47.69 kB / 0.538 GB, free: 93.73 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.238e-06/1.146, allocations: 0.5625 kB / 0.538 GB, free: 93.73 MB / 410.7 MB Notification: Performance of matching and sorting (n=141): time 0.02769/1.174, allocations: 6.523 MB / 0.5443 GB, free: 93.03 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/1.174, allocations: 70.47 kB / 0.5444 GB, free: 92.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004591/1.179, allocations: 1.503 MB / 0.5459 GB, free: 92.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004136/1.179, allocations: 51.66 kB / 0.5459 GB, free: 92.77 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001205/1.18, allocations: 1.07 MB / 0.547 GB, free: 92.34 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008876/1.181, allocations: 488.5 kB / 0.5474 GB, free: 92.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001799/1.182, allocations: 31.28 kB / 0.5475 GB, free: 92.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/1.182, allocations: 374.2 kB / 0.5478 GB, free: 91.78 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002292/1.184, allocations: 0.8013 MB / 0.5486 GB, free: 91.78 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002707/1.187, allocations: 1.179 MB / 0.5498 GB, free: 91.36 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002778/1.19, allocations: 0.9772 MB / 0.5507 GB, free: 91.35 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.623e-05/1.19, allocations: 0 / 0.5507 GB, free: 91.35 MB / 410.7 MB Notification: Performance of matching and sorting (n=201) (initialization): time 0.007416/1.197, allocations: 2.616 MB / 0.5533 GB, free: 91.21 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.732e-05/1.197, allocations: 14.77 kB / 0.5533 GB, free: 91.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.507e-05/1.197, allocations: 10.16 kB / 0.5533 GB, free: 91.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002467/1.2, allocations: 0.5808 MB / 0.5539 GB, free: 91.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002831/1.203, allocations: 367.5 kB / 0.5542 GB, free: 91.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01106/1.214, allocations: 6.322 MB / 0.5604 GB, free: 88.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002569/1.216, allocations: 123.4 kB / 0.5605 GB, free: 88.49 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004481/1.217, allocations: 61.84 kB / 0.5606 GB, free: 88.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 169 * 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: 2 * 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: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004834/1.217, allocations: 195 kB / 0.5607 GB, free: 88.33 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007189/1.218, allocations: 186.4 kB / 0.5609 GB, free: 88.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007157/1.225, allocations: 2.525 MB / 0.5634 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-05/1.225, allocations: 14.19 kB / 0.5634 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.537e-05/1.225, allocations: 5.938 kB / 0.5634 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.462e-05/1.225, allocations: 7.453 kB / 0.5634 GB, free: 87.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01582/1.241, allocations: 5.273 MB / 0.5686 GB, free: 85.24 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.413e-05/1.241, allocations: 3.625 kB / 0.5686 GB, free: 85.24 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002053/1.243, allocations: 243.2 kB / 0.5688 GB, free: 85.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002963/1.246, allocations: 0.6398 MB / 0.5694 GB, free: 85.06 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003201/1.247, allocations: 33.95 kB / 0.5695 GB, free: 85.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01304/1.26, allocations: 8.05 MB / 0.5773 GB, free: 79.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/1.26, allocations: 1.688 kB / 0.5773 GB, free: 79.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009361/1.269, allocations: 3.841 MB / 0.5811 GB, free: 77.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001693/1.271, allocations: 452.2 kB / 0.5815 GB, free: 77.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007054/1.272, allocations: 26.25 kB / 0.5815 GB, free: 77.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002306/1.274, allocations: 106.2 kB / 0.5816 GB, free: 77.48 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006125/1.275, allocations: 126.2 kB / 0.5817 GB, free: 77.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001628/1.275, allocations: 45.31 kB / 0.5818 GB, free: 77.45 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002761/1.278, allocations: 1.155 MB / 0.5829 GB, free: 77 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.42e-07/1.278, allocations: 3.562 kB / 0.5829 GB, free: 77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003162/1.281, allocations: 0.5647 MB / 0.5835 GB, free: 76.95 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 6 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],loadInertia.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01027/1.291, allocations: 5.244 MB / 0.5886 GB, free: 74.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006438/1.298, allocations: 2.475 MB / 0.591 GB, free: 73.01 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.07e-05/1.298, allocations: 2.531 kB / 0.591 GB, free: 73.01 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004454/1.302, allocations: 1.633 MB / 0.5926 GB, free: 72.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003768/1.306, allocations: 445.9 kB / 0.593 GB, free: 72.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01426/1.32, allocations: 4.843 MB / 0.5978 GB, free: 70.12 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002652/1.323, allocations: 2.034 MB / 0.5997 GB, free: 69.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002278/1.325, allocations: 0.9304 MB / 0.6007 GB, free: 68.43 MB / 410.7 MB Notification: Performance of SimCode: time 1.262e-06/1.325, allocations: 0 / 0.6007 GB, free: 68.43 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.667/4.992, allocations: 78.27 MB / 0.6771 GB, free: 13.88 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_DOL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_DOL_res.mat does not exist to compare? outputFormat=mat