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_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.AsynchronousInductionMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_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.001571/0.001571, allocations: 181.8 kB / 8.365 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.006/2.006, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 85.03 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.817e-05/2.824e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3766/0.3767, allocations: 47.56 MB / 362.4 MB, free: 45.72 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2148/0.5916, allocations: 103 MB / 465.4 MB, free: 15.15 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003274/0.592, allocations: 79.95 kB / 465.5 MB, free: 15.07 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2223/0.8144, allocations: 43.97 MB / 0.4976 GB, free: 2.875 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.444e-06/0.8144, allocations: 3.938 kB / 0.4976 GB, free: 2.871 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000357/0.8148, allocations: 55.94 kB / 0.4976 GB, free: 2.816 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.01164/0.8265, allocations: 2.189 MB / 0.4997 GB, free: 0.5703 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.751e-05/0.8266, allocations: 8.031 kB / 0.4998 GB, free: 0.5625 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002446/0.829, allocations: 288.9 kB / 0.5 GB, free: 284 kB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3254/1.154, allocations: 1.53 MB / 0.5015 GB, free: 97.62 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001703/1.155, allocations: 67.09 kB / 0.5016 GB, free: 97.62 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008002/1.155, allocations: 123.5 kB / 0.5017 GB, free: 97.62 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00653/1.162, allocations: 2.023 MB / 0.5037 GB, free: 97.6 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008214/1.17, allocations: 2.35 MB / 0.506 GB, free: 97.27 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001353/1.17, allocations: 11.41 kB / 0.506 GB, free: 97.27 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002809/1.171, allocations: 2.938 kB / 0.506 GB, free: 97.27 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/1.171, allocations: 89.59 kB / 0.5061 GB, free: 97.26 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02363/1.195, allocations: 8.056 MB / 0.5139 GB, free: 95.25 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003162/1.198, allocations: 1.712 MB / 0.5156 GB, free: 94.67 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002162/1.2, allocations: 0.8691 MB / 0.5165 GB, free: 94.65 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000413/1.2, allocations: 131.4 kB / 0.5166 GB, free: 94.55 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.487e-05/1.2, allocations: 46.72 kB / 0.5166 GB, free: 94.52 MB / 395.1 MB Notification: Performance of pre-optimization done (n=107): time 3.536e-06/1.201, allocations: 3.156 kB / 0.5166 GB, free: 94.52 MB / 395.1 MB Notification: Performance of matching and sorting (n=123): time 0.01383/1.214, allocations: 4.369 MB / 0.5209 GB, free: 93.43 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/1.214, allocations: 64.44 kB / 0.521 GB, free: 93.36 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002278/1.217, allocations: 1.094 MB / 0.522 GB, free: 92.92 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003027/1.217, allocations: 28.36 kB / 0.5221 GB, free: 92.89 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000648/1.218, allocations: 0.9411 MB / 0.523 GB, free: 92.11 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004646/1.218, allocations: 414.5 kB / 0.5234 GB, free: 91.79 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/1.218, allocations: 0 / 0.5234 GB, free: 91.79 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/1.218, allocations: 368.1 kB / 0.5237 GB, free: 91.45 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001408/1.22, allocations: 0.6788 MB / 0.5244 GB, free: 91.2 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001569/1.221, allocations: 0.9591 MB / 0.5253 GB, free: 90.6 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001727/1.223, allocations: 0.8212 MB / 0.5261 GB, free: 90.3 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.468e-06/1.223, allocations: 0 / 0.5261 GB, free: 90.3 MB / 395.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004975/1.228, allocations: 2.041 MB / 0.5281 GB, free: 89.61 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.267e-05/1.228, allocations: 9.594 kB / 0.5281 GB, free: 89.61 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.049e-05/1.228, allocations: 8.688 kB / 0.5281 GB, free: 89.61 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001457/1.23, allocations: 410.8 kB / 0.5285 GB, free: 89.49 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002545/1.232, allocations: 337.2 kB / 0.5289 GB, free: 89.48 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006103/1.239, allocations: 4.42 MB / 0.5332 GB, free: 86.21 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001994/1.241, allocations: 69.64 kB / 0.5332 GB, free: 86.21 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002148/1.241, allocations: 54.72 kB / 0.5333 GB, free: 86.2 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (156): * Single equations (assignments): 152 * 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 {(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003762/1.241, allocations: 135.6 kB / 0.5334 GB, free: 86.09 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004663/1.246, allocations: 1.87 MB / 0.5352 GB, free: 85.4 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006575/1.247, allocations: 146.3 kB / 0.5354 GB, free: 85.32 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004956/1.252, allocations: 1.991 MB / 0.5373 GB, free: 84.59 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/1.252, allocations: 10.53 kB / 0.5373 GB, free: 84.59 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.347e-06/1.252, allocations: 6.875 kB / 0.5373 GB, free: 84.59 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.581e-05/1.252, allocations: 10 kB / 0.5374 GB, free: 84.58 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01133/1.263, allocations: 4.163 MB / 0.5414 GB, free: 82.93 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/1.263, allocations: 4.719 kB / 0.5414 GB, free: 82.93 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001971/1.265, allocations: 241.4 kB / 0.5417 GB, free: 82.91 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002134/1.267, allocations: 460.4 kB / 0.5421 GB, free: 82.77 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003035/1.268, allocations: 13.92 kB / 0.5421 GB, free: 82.77 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007674/1.275, allocations: 5.901 MB / 0.5479 GB, free: 78.16 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.003e-05/1.275, allocations: 9.578 kB / 0.5479 GB, free: 78.16 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006817/1.282, allocations: 3.154 MB / 0.551 GB, free: 76.7 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001427/1.284, allocations: 384.6 kB / 0.5513 GB, free: 76.45 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004904/1.284, allocations: 9.094 kB / 0.5513 GB, free: 76.45 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001675/1.286, allocations: 63.98 kB / 0.5514 GB, free: 76.45 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004293/1.286, allocations: 112.6 kB / 0.5515 GB, free: 76.43 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001326/1.286, allocations: 37.31 kB / 0.5515 GB, free: 76.42 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001802/1.288, allocations: 0.8277 MB / 0.5523 GB, free: 76.07 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.143e-06/1.288, allocations: 0 / 0.5523 GB, free: 76.07 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002598/1.291, allocations: 429.5 kB / 0.5528 GB, free: 76.06 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.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 (107): * Single equations (assignments): 103 * 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: 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 {(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007605/1.299, allocations: 4.479 MB / 0.5571 GB, free: 73.46 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.004773/1.303, allocations: 2.135 MB / 0.5592 GB, free: 72.43 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/1.303, allocations: 2.844 kB / 0.5592 GB, free: 72.43 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003237/1.307, allocations: 1.406 MB / 0.5606 GB, free: 71.51 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002977/1.31, allocations: 323.3 kB / 0.5609 GB, free: 71.28 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01169/1.321, allocations: 4.174 MB / 0.565 GB, free: 67.63 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002021/1.323, allocations: 1.841 MB / 0.5668 GB, free: 66.14 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002084/1.326, allocations: 0.7998 MB / 0.5676 GB, free: 65.4 MB / 395.1 MB Notification: Performance of SimCode: time 1.142e-06/1.326, allocations: 0 / 0.5676 GB, free: 65.4 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.197/5.523, allocations: 76.9 MB / 0.6427 GB, free: 8.758 MB / 411.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_DOL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.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_DOL_res.mat does not exist to compare? outputFormat=mat