Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008308/0.0008307, allocations: 96.75 kB / 16.95 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000927/0.000927, allocations: 182.3 kB / 17.84 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.534/1.534, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004799/0.0004801, allocations: 12.62 kB / 280.9 MB, free: 3.613 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1197, allocations: 47.57 MB / 328.5 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.0146/0.1344, allocations: 12.04 MB / 340.5 MB, free: 7.891 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01203/0.1465, allocations: 4.192 MB / 344.7 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003436/0.15, allocations: 71.69 kB / 344.8 MB, free: 3.613 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003782/0.1538, allocations: 0.7651 MB / 345.5 MB, free: 2.844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006437/0.1603, allocations: 1.158 MB / 346.7 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003426/0.1638, allocations: 0.6081 MB / 347.3 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009209/0.173, allocations: 4.744 MB / 352 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006117/0.1792, allocations: 2.557 MB / 354.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004391/0.1836, allocations: 1.494 MB / 356.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005467/0.1892, allocations: 1.902 MB / 358 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001753/0.191, allocations: 240 kB / 358.2 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003031/0.194, allocations: 427.8 kB / 358.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002346/0.1964, allocations: 0.9109 MB / 359.5 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002644/0.1991, allocations: 0.8473 MB / 360.4 MB, free: 3.871 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01019/0.2093, allocations: 6.326 MB / 366.7 MB, free: 13.53 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.159e-05/0.2094, allocations: 3.984 kB / 366.7 MB, free: 13.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.094e-06/0.2094, allocations: 8 kB / 366.7 MB, free: 13.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003399/0.2097, allocations: 0 / 366.7 MB, free: 13.52 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01477/0.2245, allocations: 4.292 MB / 371 MB, free: 9.152 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/0.2246, allocations: 8.031 kB / 371 MB, free: 9.145 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002437/0.227, allocations: 0.506 MB / 371.5 MB, free: 8.629 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006098/0.2331, allocations: 0.8849 MB / 372.4 MB, free: 7.738 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007431/0.2406, allocations: 2.515 MB / 374.9 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00044/0.2411, allocations: 271.2 kB / 375.2 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001651/0.2428, allocations: 367.8 kB / 375.6 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2779/0.5207, allocations: 5.003 MB / 380.6 MB, free: 45.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001154/0.5209, allocations: 3.062 kB / 380.6 MB, free: 45.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004129/0.5213, allocations: 151.5 kB / 380.7 MB, free: 45.09 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002338/0.5215, allocations: 161.7 kB / 380.9 MB, free: 45.08 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009831/0.5314, allocations: 4.374 MB / 385.2 MB, free: 44.09 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02476/0.5562, allocations: 16 MB / 401.2 MB, free: 34.06 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005532/0.5617, allocations: 7.777 MB / 409 MB, free: 26.81 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002679/0.5645, allocations: 1.737 MB / 410.8 MB, free: 25.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007367/0.5718, allocations: 4.658 MB / 415.4 MB, free: 22.71 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.055e-05/0.5719, allocations: 50.56 kB / 415.5 MB, free: 22.66 MB / 318.1 MB Notification: Performance of pre-optimization done (n=161): time 4.058e-06/0.5719, allocations: 0 / 415.5 MB, free: 22.66 MB / 318.1 MB Notification: Performance of matching and sorting (n=164): time 0.01624/0.5882, allocations: 8.195 MB / 423.7 MB, free: 14.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.308e-05/0.5882, allocations: 72.72 kB / 423.7 MB, free: 14.78 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003652/0.5919, allocations: 2.147 MB / 425.9 MB, free: 12.6 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001164/0.592, allocations: 53.7 kB / 425.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009783/0.593, allocations: 1.608 MB / 427.5 MB, free: 10.92 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004248/0.5935, allocations: 0.5545 MB / 428.1 MB, free: 10.37 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.5936, allocations: 36 kB / 428.1 MB, free: 10.34 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.5937, allocations: 383.6 kB / 428.5 MB, free: 9.957 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001373/0.5951, allocations: 0.9525 MB / 429.5 MB, free: 9.004 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001523/0.5966, allocations: 1.464 MB / 430.9 MB, free: 7.328 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001546/0.5982, allocations: 1.173 MB / 432.1 MB, free: 6.156 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.238e-05/0.5982, allocations: 4 kB / 432.1 MB, free: 6.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.004867/0.6031, allocations: 3.36 MB / 435.5 MB, free: 2.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.089e-05/0.6031, allocations: 12 kB / 435.5 MB, free: 2.738 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.837e-05/0.6032, allocations: 16.47 kB / 435.5 MB, free: 2.723 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00164/0.6048, allocations: 0.7343 MB / 436.2 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.6061, allocations: 375.4 kB / 436.6 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0114/0.6175, allocations: 10.42 MB / 447 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001877/0.6194, allocations: 92.05 kB / 447.1 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003065/0.6197, allocations: 76 kB / 447.2 MB, free: 6.512 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 190 * 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: 4 * 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%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002818/0.6226, allocations: 1.212 MB / 448.4 MB, free: 5.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007998/0.6234, allocations: 225.2 kB / 448.6 MB, free: 5.066 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005964/0.6294, allocations: 3.179 MB / 451.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.6294, allocations: 16 kB / 451.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.12e-05/0.6294, allocations: 16 kB / 451.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-05/0.6295, allocations: 7.969 kB / 451.8 MB, free: 1.781 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01216/0.6416, allocations: 6.572 MB / 458.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/0.6417, allocations: 192 / 458.4 MB, free: 11.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008327/0.6425, allocations: 179.8 kB / 458.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002419/0.645, allocations: 0.9172 MB / 459.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001288/0.6451, allocations: 39.98 kB / 459.5 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01634/0.6615, allocations: 14.8 MB / 474.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.6615, allocations: 4.031 kB / 474.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00758/0.6691, allocations: 4.523 MB / 478.8 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001582/0.6707, allocations: 0.5217 MB / 479.4 MB, free: 5.219 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007544/0.6715, allocations: 32 kB / 479.4 MB, free: 5.188 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/0.673, allocations: 95.89 kB / 479.5 MB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004675/0.6735, allocations: 157 kB / 479.6 MB, free: 4.941 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/0.6736, allocations: 43.98 kB / 479.7 MB, free: 4.898 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003625/0.6772, allocations: 1.473 MB / 481.2 MB, free: 3.406 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.575e-06/0.6773, allocations: 0 / 481.2 MB, free: 3.406 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003426/0.6807, allocations: 0.7057 MB / 481.9 MB, free: 2.703 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007498/0.6882, allocations: 5.139 MB / 487 MB, free: 13.46 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00516/0.6934, allocations: 3.121 MB / 490.1 MB, free: 10.28 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.6934, allocations: 4.875 kB / 490.1 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003577/0.697, allocations: 2.274 MB / 492.4 MB, free: 7.922 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003771/0.7008, allocations: 0.614 MB / 493 MB, free: 7.305 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04907/0.7499, allocations: 20.61 MB / 0.5016 GB, free: 1.422 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004436/0.7544, allocations: 2.678 MB / 0.5042 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002408/0.7568, allocations: 479.4 kB / 0.5047 GB, free: 14.24 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002246/0.7591, allocations: 1.319 MB / 0.506 GB, free: 12.92 MB / 414.1 MB Notification: Performance of SimCode: time 1.413e-06/0.7591, allocations: 0 / 0.506 GB, free: 12.92 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3594/1.119, allocations: 60.96 MB / 0.5655 GB, free: 129.3 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000205/1.119, allocations: 225 kB / 0.5657 GB, free: 129.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.473/4.591, allocations: 4 kB / 0.5657 GB, free: 129.1 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.mat does not exist to compare? outputFormat=mat