Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.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.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter",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.002334/0.00234, allocations: 182.2 kB / 16.4 MB, free: 5.754 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.047/2.047, 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.001161/0.00116, allocations: 98.61 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003985/0.0003987, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3398, allocations: 47.58 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02408/0.3639, allocations: 16.25 MB / 390.9 MB, free: 32.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01381/0.3778, allocations: 5.769 MB / 396.6 MB, free: 26.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004112/0.382, allocations: 103.5 kB / 396.8 MB, free: 26.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004578/0.3866, allocations: 1.002 MB / 397.8 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007908/0.3946, allocations: 1.69 MB / 399.4 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004216/0.3988, allocations: 0.8354 MB / 400.3 MB, free: 23.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009319/0.4082, allocations: 4.087 MB / 404.4 MB, free: 19.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00661/0.4148, allocations: 3.574 MB / 407.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003855/0.4188, allocations: 1.907 MB / 409.8 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00483/0.4236, allocations: 2.393 MB / 412.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00174/0.4254, allocations: 320 kB / 412.6 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003119/0.4286, allocations: 0.5309 MB / 413.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002392/0.4311, allocations: 1.32 MB / 414.4 MB, free: 8.926 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002191/0.4333, allocations: 1.132 MB / 415.5 MB, free: 7.785 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01144/0.4448, allocations: 8.301 MB / 423.8 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.4449, allocations: 0 / 423.8 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.4449, allocations: 4 kB / 423.8 MB, free: 15.46 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0003378/0.4453, allocations: 0 / 423.8 MB, free: 15.46 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02252/0.4678, allocations: 5.569 MB / 429.4 MB, free: 9.809 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.4679, allocations: 12.03 kB / 429.4 MB, free: 9.797 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002781/0.4707, allocations: 0.6997 MB / 430.1 MB, free: 9.086 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008046/0.4788, allocations: 1.012 MB / 431.1 MB, free: 8.066 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/0.4896, allocations: 3.213 MB / 434.3 MB, free: 4.777 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007327/0.4904, allocations: 398.2 kB / 434.7 MB, free: 4.387 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002084/0.4925, allocations: 0.5153 MB / 435.2 MB, free: 3.871 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02434/0.5169, allocations: 6.697 MB / 441.9 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002385/0.5172, allocations: 11.84 kB / 442 MB, free: 13.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001533/0.5187, allocations: 212 kB / 442.2 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004013/0.5192, allocations: 242.2 kB / 442.4 MB, free: 12.64 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02144/0.5406, allocations: 5.732 MB / 448.1 MB, free: 6.902 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06004/0.6007, allocations: 21.12 MB / 469.2 MB, free: 1.293 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01448/0.6153, allocations: 8.545 MB / 477.8 MB, free: 7.801 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0151/0.6304, allocations: 4.97 MB / 482.8 MB, free: 2.695 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.737e-05/0.6305, allocations: 56.56 kB / 482.8 MB, free: 2.633 MB / 362.7 MB Notification: Performance of pre-optimization done (n=219): time 5.821e-06/0.6306, allocations: 4 kB / 482.8 MB, free: 2.629 MB / 362.7 MB Notification: Performance of matching and sorting (n=238): time 0.04144/0.672, allocations: 11.05 MB / 493.9 MB, free: 7.359 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.389e-05/0.6721, allocations: 77.41 kB / 493.9 MB, free: 7.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00708/0.6792, allocations: 2.809 MB / 496.8 MB, free: 4.449 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005097/0.6798, allocations: 61.7 kB / 496.8 MB, free: 4.383 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002446/0.6823, allocations: 2.177 MB / 499 MB, free: 2.184 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001381/0.6837, allocations: 0.8203 MB / 499.8 MB, free: 1.352 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003089/0.684, allocations: 60 kB / 499.9 MB, free: 1.293 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003191/0.6843, allocations: 433.1 kB / 0.4886 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2801/0.9645, allocations: 1.312 MB / 0.4899 GB, free: 102.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004004/0.9685, allocations: 2.19 MB / 0.492 GB, free: 101.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004838/0.9734, allocations: 1.702 MB / 0.4937 GB, free: 101 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.282e-05/0.9735, allocations: 7.906 kB / 0.4937 GB, free: 101 MB / 378.7 MB Notification: Performance of matching and sorting (n=383) (initialization): time 0.0118/0.9853, allocations: 4.34 MB / 0.4979 GB, free: 99.16 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.235e-05/0.9854, allocations: 20.48 kB / 0.4979 GB, free: 99.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.895e-05/0.9855, allocations: 28.31 kB / 0.4979 GB, free: 99.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001957/0.9875, allocations: 0.5111 MB / 0.4984 GB, free: 98.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005332/0.9928, allocations: 0.7248 MB / 0.4992 GB, free: 98.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01123/1.004, allocations: 9.46 MB / 0.5084 GB, free: 91.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003954/1.008, allocations: 182.8 kB / 0.5086 GB, free: 91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005478/1.009, allocations: 131.1 kB / 0.5087 GB, free: 90.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 124 * 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 (358): * Single equations (assignments): 351 * 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: 5 * 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: 5 {(1,100.0%) 1,(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004035/1.013, allocations: 1.526 MB / 0.5102 GB, free: 90.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009205/1.014, allocations: 321.5 kB / 0.5105 GB, free: 90.17 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01032/1.024, allocations: 4.038 MB / 0.5144 GB, free: 88.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.714e-05/1.024, allocations: 21.69 kB / 0.5145 GB, free: 88.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.091e-05/1.024, allocations: 7.5 kB / 0.5145 GB, free: 88.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.354e-05/1.024, allocations: 10.36 kB / 0.5145 GB, free: 88.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02143/1.046, allocations: 8.819 MB / 0.5231 GB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.781e-05/1.046, allocations: 8 kB / 0.5231 GB, free: 80.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00347/1.049, allocations: 419.4 kB / 0.5235 GB, free: 79.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00303/1.052, allocations: 0.7176 MB / 0.5242 GB, free: 79.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004011/1.053, allocations: 63.97 kB / 0.5242 GB, free: 79 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0177/1.07, allocations: 15.37 MB / 0.5393 GB, free: 62.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.524e-06/1.07, allocations: 7.938 kB / 0.5393 GB, free: 62.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01355/1.084, allocations: 6.265 MB / 0.5454 GB, free: 56.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002189/1.086, allocations: 0.6676 MB / 0.546 GB, free: 55.6 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008225/1.087, allocations: 63.94 kB / 0.5461 GB, free: 55.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002936/1.09, allocations: 143.9 kB / 0.5462 GB, free: 55.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006232/1.091, allocations: 185.6 kB / 0.5464 GB, free: 55.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000224/1.091, allocations: 75.97 kB / 0.5465 GB, free: 55.14 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.003941/1.095, allocations: 1.885 MB / 0.5483 GB, free: 53.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.693e-06/1.095, allocations: 4 kB / 0.5483 GB, free: 53.26 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.004903/1.1, allocations: 0.9423 MB / 0.5493 GB, free: 52.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],loadInertiaM.phi,loadInertiaE.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 (201): * Single equations (assignments): 193 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 11,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(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.01462/1.115, allocations: 8.166 MB / 0.5572 GB, free: 43.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.009317/1.124, allocations: 4.068 MB / 0.5612 GB, free: 39.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/1.124, allocations: 1.875 kB / 0.5612 GB, free: 39.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00656/1.131, allocations: 2.731 MB / 0.5639 GB, free: 36.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005917/1.137, allocations: 0.7877 MB / 0.5646 GB, free: 36.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08953/1.226, allocations: 47.59 MB / 0.6111 GB, free: 2.559 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005529/1.232, allocations: 3.324 MB / 0.6144 GB, free: 15.2 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004801/1.237, allocations: 1.987 MB / 0.6163 GB, free: 13.21 MB / 410.7 MB Notification: Performance of SimCode: time 1.673e-06/1.237, allocations: 0 / 0.6163 GB, free: 13.21 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.42/6.657, allocations: 260 MB / 0.8702 GB, free: 119 MB / 458.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMR_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat