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.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,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.00216/0.00216, allocations: 183.1 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.116/2.116, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001144/0.001144, allocations: 101.2 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003836/0.0003839, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3245, allocations: 47.57 MB / 374.6 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.02207/0.3466, allocations: 15.61 MB / 390.3 MB, free: 33.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01265/0.3593, allocations: 5.527 MB / 395.8 MB, free: 27.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003297/0.3626, allocations: 95.56 kB / 395.9 MB, free: 27.55 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003964/0.3666, allocations: 1.003 MB / 396.9 MB, free: 26.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0067/0.3733, allocations: 1.624 MB / 398.5 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003486/0.3768, allocations: 0.7837 MB / 399.3 MB, free: 24.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008683/0.3855, allocations: 4.277 MB / 403.6 MB, free: 19.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005371/0.391, allocations: 3.535 MB / 407.1 MB, free: 16.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003241/0.3942, allocations: 1.985 MB / 409.1 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004302/0.3986, allocations: 2.44 MB / 411.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001058/0.3997, allocations: 332 kB / 411.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002323/0.402, allocations: 0.5309 MB / 412.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001504/0.4035, allocations: 1.34 MB / 413.7 MB, free: 9.621 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001634/0.4052, allocations: 1.167 MB / 414.9 MB, free: 8.445 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01017/0.4154, allocations: 8.57 MB / 423.5 MB, free: 15.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.4154, allocations: 0 / 423.5 MB, free: 15.85 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.557e-06/0.4154, allocations: 4 kB / 423.5 MB, free: 15.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.00025/0.4157, allocations: 0 / 423.5 MB, free: 15.84 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.02179/0.4375, allocations: 5.658 MB / 429.1 MB, free: 10.11 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.009e-05/0.4376, allocations: 12.03 kB / 429.1 MB, free: 10.1 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002446/0.44, allocations: 0.6998 MB / 429.8 MB, free: 9.387 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008044/0.4481, allocations: 1.082 MB / 430.9 MB, free: 8.297 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0102/0.4583, allocations: 3.324 MB / 434.2 MB, free: 4.898 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004856/0.4589, allocations: 394.3 kB / 434.6 MB, free: 4.512 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001752/0.4606, allocations: 0.4999 MB / 435.1 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02244/0.4831, allocations: 6.887 MB / 442 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000213/0.4834, allocations: 11.84 kB / 442 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008406/0.4842, allocations: 208 kB / 442.2 MB, free: 12.83 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003792/0.4846, allocations: 242.2 kB / 442.5 MB, free: 12.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01915/0.5038, allocations: 5.892 MB / 448.3 MB, free: 6.688 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05928/0.5631, allocations: 21.42 MB / 469.8 MB, free: 0.793 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01543/0.5786, allocations: 8.693 MB / 478.5 MB, free: 7.164 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01628/0.5949, allocations: 5.103 MB / 483.6 MB, free: 1.953 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.206e-05/0.595, allocations: 60.56 kB / 483.6 MB, free: 1.887 MB / 362.7 MB Notification: Performance of pre-optimization done (n=227): time 5.36e-06/0.595, allocations: 4 kB / 483.6 MB, free: 1.883 MB / 362.7 MB Notification: Performance of matching and sorting (n=246): time 0.04317/0.6382, allocations: 11.65 MB / 495.3 MB, free: 5.98 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.367e-05/0.6383, allocations: 77.41 kB / 495.4 MB, free: 5.891 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007041/0.6454, allocations: 2.903 MB / 498.3 MB, free: 2.977 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005334/0.646, allocations: 69.7 kB / 498.3 MB, free: 2.902 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002323/0.6483, allocations: 2.135 MB / 0.4887 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.2692/0.9176, allocations: 0.8295 MB / 0.4895 GB, free: 103.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000346/0.918, allocations: 64.38 kB / 0.4896 GB, free: 103.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000258/0.9182, allocations: 426.9 kB / 0.49 GB, free: 102.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003683/0.9219, allocations: 1.379 MB / 0.4914 GB, free: 102.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004794/0.9268, allocations: 2.137 MB / 0.4934 GB, free: 101.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005027/0.9318, allocations: 1.726 MB / 0.4951 GB, free: 100.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.052e-05/0.9319, allocations: 6.438 kB / 0.4951 GB, free: 100.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01337/0.9453, allocations: 4.512 MB / 0.4995 GB, free: 99.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.898e-05/0.9454, allocations: 14.91 kB / 0.4996 GB, free: 99.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.667e-05/0.9455, allocations: 26.91 kB / 0.4996 GB, free: 99.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003124/0.9486, allocations: 0.752 MB / 0.5003 GB, free: 98.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005073/0.9537, allocations: 0.6546 MB / 0.501 GB, free: 98.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01569/0.9695, allocations: 13.55 MB / 0.5142 GB, free: 87.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003841/0.9733, allocations: 155.1 kB / 0.5143 GB, free: 87.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005587/0.9739, allocations: 120.9 kB / 0.5144 GB, free: 87.42 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 104 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (330): * Single equations (assignments): 320 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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%) 1,(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004201/0.9781, allocations: 1.601 MB / 0.516 GB, free: 86.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000927/0.9791, allocations: 323.3 kB / 0.5163 GB, free: 86.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01104/0.9901, allocations: 4.279 MB / 0.5205 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.829e-05/0.9902, allocations: 27.95 kB / 0.5205 GB, free: 82.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.603e-05/0.9902, allocations: 12 kB / 0.5205 GB, free: 82.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.842e-05/0.9903, allocations: 15.95 kB / 0.5205 GB, free: 82.83 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02294/1.013, allocations: 9.211 MB / 0.5295 GB, free: 73.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.239e-05/1.013, allocations: 4 kB / 0.5295 GB, free: 73.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003381/1.017, allocations: 394.3 kB / 0.5299 GB, free: 73.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003995/1.021, allocations: 0.9199 MB / 0.5308 GB, free: 72.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004682/1.021, allocations: 67.97 kB / 0.5309 GB, free: 72.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02051/1.042, allocations: 16.71 MB / 0.5472 GB, free: 54.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/1.042, allocations: 4 kB / 0.5472 GB, free: 54.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/1.057, allocations: 6.543 MB / 0.5536 GB, free: 47.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002332/1.059, allocations: 0.7001 MB / 0.5543 GB, free: 47.13 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000909/1.06, allocations: 59.98 kB / 0.5543 GB, free: 47.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003151/1.063, allocations: 143.9 kB / 0.5545 GB, free: 46.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007947/1.064, allocations: 207.2 kB / 0.5547 GB, free: 46.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002583/1.064, allocations: 67.98 kB / 0.5547 GB, free: 46.67 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.004296/1.068, allocations: 1.971 MB / 0.5567 GB, free: 44.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.01e-07/1.069, allocations: 3.938 kB / 0.5567 GB, free: 44.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005103/1.074, allocations: 0.9821 MB / 0.5576 GB, free: 43.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (187): * Single equations (assignments): 178 * 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: 8 * 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: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01575/1.089, allocations: 8.137 MB / 0.5656 GB, free: 35.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01034/1.1, allocations: 4.647 MB / 0.5701 GB, free: 30.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.745e-06/1.1, allocations: 8.062 kB / 0.5701 GB, free: 30.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007133/1.107, allocations: 3.098 MB / 0.5732 GB, free: 27.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006005/1.113, allocations: 0.8408 MB / 0.574 GB, free: 26.54 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09292/1.206, allocations: 45.64 MB / 0.6185 GB, free: 10.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006151/1.212, allocations: 3.453 MB / 0.6219 GB, free: 7.496 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004869/1.217, allocations: 1.964 MB / 0.6238 GB, free: 5.531 MB / 410.7 MB Notification: Performance of SimCode: time 1.443e-06/1.217, allocations: 0 / 0.6238 GB, free: 5.531 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.701/6.918, allocations: 319.2 MB / 0.9356 GB, free: 34.07 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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_res.mat does not exist to compare? outputFormat=mat