Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007331/0.000733, allocations: 101.8 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008135/0.0008135, allocations: 192.3 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002677/0.0002679, allocations: 4 kB / 306.8 MB, free: 1.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1173, allocations: 51.49 MB / 358.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.2773/0.3947, allocations: 29.29 MB / 387.6 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02621/0.421, allocations: 8.559 MB / 396.2 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009814/0.4308, allocations: 218 kB / 396.4 MB, free: 15.56 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01117/0.442, allocations: 1.65 MB / 398 MB, free: 14.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01582/0.4579, allocations: 3.022 MB / 401.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00715/0.465, allocations: 1.409 MB / 402.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02829/0.4933, allocations: 15.85 MB / 418.3 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03907/0.5325, allocations: 17.6 MB / 435.9 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01188/0.5444, allocations: 4.777 MB / 440.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01363/0.558, allocations: 5.44 MB / 446.1 MB, free: 4.754 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004398/0.5625, allocations: 0.7305 MB / 446.9 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009597/0.5721, allocations: 1.089 MB / 448 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005557/0.5777, allocations: 2.359 MB / 450.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006682/0.5844, allocations: 2.391 MB / 452.7 MB, free: 14.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02896/0.6134, allocations: 21.09 MB / 473.8 MB, free: 9.012 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.6134, allocations: 0 / 473.8 MB, free: 9.012 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.6134, allocations: 0 / 473.8 MB, free: 9.012 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000897/0.6144, allocations: 0 / 473.8 MB, free: 9.012 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.03914/0.6535, allocations: 12.41 MB / 486.2 MB, free: 12.49 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.6536, allocations: 8.031 kB / 486.2 MB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008238/0.6618, allocations: 1.518 MB / 487.7 MB, free: 10.95 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03881/0.7006, allocations: 6.814 MB / 494.6 MB, free: 4.117 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01874/0.7194, allocations: 7.763 MB / 0.4905 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009352/0.7204, allocations: 0.7947 MB / 0.4913 GB, free: 11.48 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005455/0.7259, allocations: 1.051 MB / 0.4923 GB, free: 10.43 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06206/0.7879, allocations: 17.14 MB / 0.5091 GB, free: 9.211 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008755/0.7889, allocations: 19.81 kB / 0.5091 GB, free: 9.191 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005225/0.7941, allocations: 447.9 kB / 0.5095 GB, free: 8.754 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008443/0.795, allocations: 0.6236 MB / 0.5101 GB, free: 8.125 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04595/0.8409, allocations: 16.22 MB / 0.526 GB, free: 7.871 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6079/1.449, allocations: 57.12 MB / 0.5818 GB, free: 92.46 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0224/1.471, allocations: 31.35 MB / 0.6124 GB, free: 62.44 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0066/1.478, allocations: 4.371 MB / 0.6167 GB, free: 60.18 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01608/1.494, allocations: 10.76 MB / 0.6272 GB, free: 49.44 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.968e-05/1.494, allocations: 85.77 kB / 0.6272 GB, free: 49.35 MB / 446.1 MB Notification: Performance of pre-optimization done (n=398): time 5.149e-06/1.494, allocations: 0 / 0.6272 GB, free: 49.35 MB / 446.1 MB Notification: Performance of matching and sorting (n=423): time 0.04889/1.543, allocations: 23.46 MB / 0.6502 GB, free: 25.51 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.084e-05/1.543, allocations: 120.7 kB / 0.6503 GB, free: 25.37 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006473/1.55, allocations: 4.659 MB / 0.6548 GB, free: 20.7 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008823/1.551, allocations: 97.7 kB / 0.6549 GB, free: 20.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002309/1.553, allocations: 4.666 MB / 0.6595 GB, free: 15.91 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00175/1.555, allocations: 1.449 MB / 0.6609 GB, free: 14.47 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003626/1.555, allocations: 120 kB / 0.661 GB, free: 14.35 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000296/1.555, allocations: 0.5422 MB / 0.6615 GB, free: 13.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004355/1.56, allocations: 2.893 MB / 0.6644 GB, free: 10.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005201/1.565, allocations: 4.934 MB / 0.6692 GB, free: 5.043 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005143/1.57, allocations: 3.938 MB / 0.673 GB, free: 1.086 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-05/1.57, allocations: 20 kB / 0.673 GB, free: 1.066 MB / 446.1 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01762/1.588, allocations: 9.703 MB / 0.6825 GB, free: 7.305 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.087e-05/1.588, allocations: 32 kB / 0.6825 GB, free: 7.273 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001076/1.588, allocations: 64 kB / 0.6826 GB, free: 7.211 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004253/1.592, allocations: 1.666 MB / 0.6842 GB, free: 5.531 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005226/1.597, allocations: 1.322 MB / 0.6855 GB, free: 4.207 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02163/1.619, allocations: 16.47 MB / 0.7016 GB, free: 3.207 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005231/1.624, allocations: 331.6 kB / 0.7019 GB, free: 2.883 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001228/1.626, allocations: 280 kB / 0.7022 GB, free: 2.609 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (671): * Single equations (assignments): 667 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(8,56.2%) 27,(1,100.0%) 1,(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008328/1.634, allocations: 3.904 MB / 0.706 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001351/1.635, allocations: 497.9 kB / 0.7065 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01359/1.649, allocations: 7.792 MB / 0.7141 GB, free: 6.312 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.699e-05/1.649, allocations: 44 kB / 0.7141 GB, free: 6.27 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-05/1.649, allocations: 20 kB / 0.7141 GB, free: 6.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.351e-05/1.649, allocations: 19.92 kB / 0.7142 GB, free: 6.23 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3498/1.999, allocations: 17.46 MB / 0.7312 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.386e-05/1.999, allocations: 11.08 kB / 0.7312 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003696/2.003, allocations: 0.7261 MB / 0.7319 GB, free: 159.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004629/2.007, allocations: 1.546 MB / 0.7334 GB, free: 158.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007844/2.008, allocations: 104.8 kB / 0.7335 GB, free: 158.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02196/2.03, allocations: 19.5 MB / 0.7526 GB, free: 144.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.711e-06/2.03, allocations: 7.875 kB / 0.7526 GB, free: 144.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01771/2.048, allocations: 11.43 MB / 0.7638 GB, free: 139.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003489/2.051, allocations: 1.16 MB / 0.7649 GB, free: 139.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001691/2.053, allocations: 90.64 kB / 0.765 GB, free: 139.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003449/2.057, allocations: 235.4 kB / 0.7652 GB, free: 139.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001104/2.058, allocations: 334.5 kB / 0.7655 GB, free: 139 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005442/2.058, allocations: 126 kB / 0.7656 GB, free: 139 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007338/2.066, allocations: 3.152 MB / 0.7687 GB, free: 137.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.3e-07/2.066, allocations: 0 / 0.7687 GB, free: 137.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01138/2.077, allocations: 1.876 MB / 0.7705 GB, free: 137 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (364): * Single equations (assignments): 357 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(14,41.3%) 44,(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02162/2.099, allocations: 12.18 MB / 0.7824 GB, free: 126.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0153/2.114, allocations: 8.069 MB / 0.7903 GB, free: 118.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.045e-05/2.114, allocations: 0 / 0.7903 GB, free: 118.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007905/2.122, allocations: 4.628 MB / 0.7948 GB, free: 113.8 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008522/2.131, allocations: 1.267 MB / 0.7961 GB, free: 112.6 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.139/2.27, allocations: 57.57 MB / 0.8523 GB, free: 52.1 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01338/2.283, allocations: 6.766 MB / 0.8589 GB, free: 45.29 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.008984/2.292, allocations: 1.858 MB / 0.8607 GB, free: 43.43 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007326/2.299, allocations: 3.928 MB / 0.8645 GB, free: 39.5 MB / 494.1 MB Notification: Performance of SimCode: time 1.833e-06/2.299, allocations: 0 / 0.8645 GB, free: 39.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5037/2.803, allocations: 147 MB / 1.008 GB, free: 63.71 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001674/2.803, allocations: 270.1 kB / 1.008 GB, free: 63.35 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.515/8.319, allocations: 6.844 kB / 1.008 GB, free: 63.35 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.mat does not exist to compare? outputFormat=mat