Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.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.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase",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.002312/0.002312, allocations: 182.6 kB / 16.4 MB, free: 5.75 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.16/2.16, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.001183/0.001183, allocations: 89.56 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005361/0.0005364, allocations: 12 kB / 327.1 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3412, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase): time 0.02689/0.3682, allocations: 18.91 MB / 393.5 MB, free: 29.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01492/0.3832, allocations: 6.344 MB / 399.9 MB, free: 23.51 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004526/0.3877, allocations: 131.4 kB / 400 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005185/0.393, allocations: 1.197 MB / 401.2 MB, free: 22.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008518/0.4015, allocations: 1.94 MB / 403.2 MB, free: 20.23 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004662/0.4062, allocations: 0.9515 MB / 404.1 MB, free: 19.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01321/0.4195, allocations: 6.659 MB / 410.8 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009473/0.429, allocations: 5.648 MB / 416.4 MB, free: 6.922 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005294/0.4343, allocations: 3.044 MB / 419.5 MB, free: 3.867 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006813/0.4412, allocations: 3.677 MB / 423.1 MB, free: 180 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002475/0.4437, allocations: 0.5118 MB / 423.6 MB, free: 15.66 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004789/0.4486, allocations: 0.6716 MB / 424.3 MB, free: 14.99 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005486/0.4541, allocations: 1.916 MB / 426.2 MB, free: 13.07 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005507/0.4597, allocations: 1.833 MB / 428.1 MB, free: 11.23 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02896/0.4887, allocations: 13.86 MB / 441.9 MB, free: 13.33 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.4888, allocations: 0 / 441.9 MB, free: 13.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.756e-06/0.4888, allocations: 0 / 441.9 MB, free: 13.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0004896/0.4893, allocations: 0 / 441.9 MB, free: 13.33 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2135 * Number of variables: 2135 Notification: Performance of Generate backend data structure: time 0.03821/0.5275, allocations: 8.949 MB / 450.9 MB, free: 4.277 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/0.5276, allocations: 8.031 kB / 450.9 MB, free: 4.27 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004461/0.5321, allocations: 1.103 MB / 452 MB, free: 3.156 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01785/0.55, allocations: 2.046 MB / 454 MB, free: 1.098 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01752/0.5675, allocations: 5.31 MB / 459.3 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001055/0.5687, allocations: 0.5901 MB / 459.9 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003481/0.5722, allocations: 0.785 MB / 460.7 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04053/0.6127, allocations: 11.22 MB / 471.9 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004855/0.6133, allocations: 7.984 kB / 471.9 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002719/0.616, allocations: 328 kB / 472.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006031/0.6167, allocations: 380.3 kB / 472.6 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03557/0.6523, allocations: 9.867 MB / 482.5 MB, free: 4.414 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6389/1.291, allocations: 34.6 MB / 0.505 GB, free: 80.77 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03061/1.322, allocations: 19.88 MB / 0.5244 GB, free: 64.34 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02325/1.345, allocations: 7.963 MB / 0.5322 GB, free: 59.07 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.382e-05/1.345, allocations: 80.48 kB / 0.5323 GB, free: 59 MB / 378.8 MB Notification: Performance of pre-optimization done (n=343): time 7.815e-06/1.345, allocations: 0 / 0.5323 GB, free: 59 MB / 378.8 MB Notification: Performance of matching and sorting (n=351): time 0.06255/1.408, allocations: 16.25 MB / 0.5481 GB, free: 48.03 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.339e-05/1.408, allocations: 94.17 kB / 0.5482 GB, free: 47.93 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009621/1.418, allocations: 4.294 MB / 0.5524 GB, free: 43.61 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0007147/1.418, allocations: 89.7 kB / 0.5525 GB, free: 43.52 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00256/1.421, allocations: 3.23 MB / 0.5556 GB, free: 40.27 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001545/1.423, allocations: 1.175 MB / 0.5568 GB, free: 39.11 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004109/1.423, allocations: 80 kB / 0.5569 GB, free: 39.03 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 0.0002699/1.423, allocations: 475.5 kB / 0.5573 GB, free: 38.55 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005344/1.429, allocations: 1.929 MB / 0.5592 GB, free: 36.61 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006205/1.435, allocations: 2.966 MB / 0.5621 GB, free: 33.18 MB / 378.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00645/1.442, allocations: 2.437 MB / 0.5645 GB, free: 30.73 MB / 378.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.66e-05/1.442, allocations: 8 kB / 0.5645 GB, free: 30.72 MB / 378.8 MB Notification: Performance of matching and sorting (n=518) (initialization): time 0.01679/1.458, allocations: 6.032 MB / 0.5704 GB, free: 24.61 MB / 378.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.024e-05/1.459, allocations: 16.81 kB / 0.5704 GB, free: 24.6 MB / 378.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.828e-05/1.459, allocations: 32 kB / 0.5704 GB, free: 24.57 MB / 378.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00353/1.462, allocations: 0.8731 MB / 0.5713 GB, free: 23.67 MB / 378.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006635/1.469, allocations: 0.8658 MB / 0.5721 GB, free: 22.8 MB / 378.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02065/1.49, allocations: 15.54 MB / 0.5873 GB, free: 6.34 MB / 378.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005247/1.495, allocations: 191.7 kB / 0.5875 GB, free: 6.152 MB / 378.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009074/1.496, allocations: 168 kB / 0.5876 GB, free: 5.988 MB / 378.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 142 * Number of states: 0 () * Number of discrete variables: 8 (idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (452): * Single equations (assignments): 443 * 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: 7 * 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: 7 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(3,100.0%) 23,(1,100.0%) 2,(1,100.0%) 2,(4,68.8%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007045/1.503, allocations: 2.593 MB / 0.5902 GB, free: 3.383 MB / 378.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001314/1.504, allocations: 462.5 kB / 0.5906 GB, free: 2.926 MB / 378.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01888/1.523, allocations: 5.994 MB / 0.5965 GB, free: 12.82 MB / 394.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.85e-05/1.523, allocations: 36 kB / 0.5965 GB, free: 12.79 MB / 394.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.408e-05/1.523, allocations: 23.95 kB / 0.5965 GB, free: 12.77 MB / 394.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.589e-05/1.523, allocations: 15.94 kB / 0.5965 GB, free: 12.75 MB / 394.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04185/1.565, allocations: 13.55 MB / 0.6098 GB, free: 15.02 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-05/1.565, allocations: 4 kB / 0.6098 GB, free: 15.02 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004001/1.569, allocations: 444 kB / 0.6102 GB, free: 14.59 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006771/1.576, allocations: 1.439 MB / 0.6116 GB, free: 13.12 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007391/1.577, allocations: 95.95 kB / 0.6117 GB, free: 13.03 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05362/1.631, allocations: 24.72 MB / 0.6358 GB, free: 3.148 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.376e-05/1.631, allocations: 7.953 kB / 0.6359 GB, free: 3.141 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03087/1.662, allocations: 9.125 MB / 0.6448 GB, free: 9.621 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00382/1.666, allocations: 0.9796 MB / 0.6457 GB, free: 8.617 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001982/1.668, allocations: 83.98 kB / 0.6458 GB, free: 8.535 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004844/1.673, allocations: 195.9 kB / 0.646 GB, free: 8.344 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001642/1.674, allocations: 341.9 kB / 0.6463 GB, free: 8.008 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005882/1.675, allocations: 99.97 kB / 0.6464 GB, free: 7.91 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.008648/1.683, allocations: 2.93 MB / 0.6493 GB, free: 4.977 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.232e-06/1.684, allocations: 0 / 0.6493 GB, free: 4.977 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.008717/1.692, allocations: 1.453 MB / 0.6507 GB, free: 3.523 MB / 442.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 12 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[5].Phi.im,quadraticLoadTorqueM.phi,aimc3.inertiaRotor.w,aimc3.stator.core.Phi.re,aimc3.stator.core.Phi.im,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque3.phi) * Number of discrete variables: 8 (idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (221): * Single equations (assignments): 212 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(6,72.2%) 46,(3,100.0%) 23,(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3244/2.017, allocations: 10.85 MB / 0.6613 GB, free: 143.3 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.0165/2.033, allocations: 5.939 MB / 0.6671 GB, free: 140.7 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 1.271e-05/2.033, allocations: 1.062 kB / 0.6671 GB, free: 140.7 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01142/2.045, allocations: 4.314 MB / 0.6713 GB, free: 138.4 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008445/2.053, allocations: 1.155 MB / 0.6724 GB, free: 138 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1483/2.202, allocations: 67 MB / 0.7379 GB, free: 77.21 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009256/2.211, allocations: 5.129 MB / 0.7429 GB, free: 72.06 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007075/2.218, allocations: 3.096 MB / 0.7459 GB, free: 68.96 MB / 442.8 MB Notification: Performance of SimCode: time 1.593e-06/2.218, allocations: 0 / 0.7459 GB, free: 68.96 MB / 442.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.721/8.939, allocations: 489.1 MB / 1.223 GB, free: 121.6 MB / 474.8 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_MultiPhase.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_MultiPhase_res.mat does not exist to compare? outputFormat=mat