Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",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.0009678/0.0009678, allocations: 108.3 kB / 16.51 MB, free: 6.707 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.0009049/0.0009048, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.185/1.185, allocations: 222.9 MB / 241.1 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0008976/0.0008976, allocations: 46.14 kB / 300.1 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07286/0.07377, allocations: 49.45 MB / 349.5 MB, free: 4.633 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.01154/0.08534, allocations: 12.67 MB / 362.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005222/0.09059, allocations: 4.205 MB / 366.4 MB, free: 3.676 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006126/0.09121, allocations: 71.69 kB / 366.5 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00164/0.09286, allocations: 0.8513 MB / 367.3 MB, free: 2.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001966/0.09485, allocations: 1.164 MB / 368.5 MB, free: 1.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001268/0.09613, allocations: 0.7791 MB / 369.3 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1251/0.2212, allocations: 4.131 MB / 373.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003269/0.2245, allocations: 2.684 MB / 376.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002064/0.2266, allocations: 1.457 MB / 377.5 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002645/0.2293, allocations: 1.896 MB / 379.4 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006975/0.23, allocations: 296.2 kB / 379.7 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001309/0.2313, allocations: 0.4899 MB / 380.2 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000673/0.232, allocations: 0.8835 MB / 381.1 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001552/0.2336, allocations: 1.839 MB / 382.9 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004917/0.2385, allocations: 6.382 MB / 389.3 MB, free: 5.699 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.2385, allocations: 3.938 kB / 389.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2385, allocations: 0.9688 kB / 389.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001169/0.2386, allocations: 0 / 389.3 MB, free: 5.695 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01252/0.2512, allocations: 4.295 MB / 393.6 MB, free: 2.82 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.651e-05/0.2512, allocations: 9.625 kB / 393.6 MB, free: 2.82 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007418/0.252, allocations: 448.1 kB / 394.1 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004094/0.2561, allocations: 0.8126 MB / 394.9 MB, free: 2.098 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003235/0.2593, allocations: 2.275 MB / 397.2 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001141/0.2595, allocations: 238.2 kB / 397.4 MB, free: 404 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003727/0.2598, allocations: 319.7 kB / 397.7 MB, free: 292 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006405/0.2663, allocations: 4.219 MB / 401.9 MB, free: 13.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.99e-05/0.2663, allocations: 7.656 kB / 401.9 MB, free: 13.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002795/0.2666, allocations: 127.2 kB / 402.1 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001227/0.2668, allocations: 154.3 kB / 402.2 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005476/0.2722, allocations: 3.604 MB / 405.8 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0173/0.2896, allocations: 13.18 MB / 419 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006044/0.2956, allocations: 6.895 MB / 425.9 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002002/0.2976, allocations: 1.367 MB / 427.2 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005373/0.303, allocations: 3.748 MB / 431 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.3031, allocations: 43.56 kB / 431 MB, free: 15.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=120): time 2.355e-06/0.3031, allocations: 0 / 431 MB, free: 15.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=123): time 0.009417/0.3125, allocations: 5.387 MB / 436.4 MB, free: 9.637 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.3125, allocations: 67.5 kB / 436.5 MB, free: 9.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002147/0.3147, allocations: 1.709 MB / 438.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.095e-05/0.3148, allocations: 45.7 kB / 438.2 MB, free: 7.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008579/0.3156, allocations: 1.396 MB / 439.6 MB, free: 6.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002933/0.316, allocations: 435.7 kB / 440.1 MB, free: 5.961 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004099/0.3164, allocations: 283.3 kB / 440.3 MB, free: 5.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001053/0.3165, allocations: 305.1 kB / 440.6 MB, free: 5.379 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009976/0.3175, allocations: 0.6442 MB / 441.3 MB, free: 4.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.3188, allocations: 1.111 MB / 442.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002352/0.3211, allocations: 1.878 MB / 444.3 MB, free: 1.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.684e-06/0.3212, allocations: 7.938 kB / 444.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003398/0.3246, allocations: 2.329 MB / 446.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.3246, allocations: 8 kB / 446.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.728e-05/0.3246, allocations: 16 kB / 446.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006279/0.3253, allocations: 263.5 kB / 446.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/0.3265, allocations: 360.3 kB / 447.2 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004771/0.3313, allocations: 5.689 MB / 452.9 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001072/0.3323, allocations: 79.8 kB / 453 MB, free: 8.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000112/0.3325, allocations: 67.98 kB / 453.1 MB, free: 8.297 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (180): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00148/0.334, allocations: 1.005 MB / 454.1 MB, free: 7.281 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002411/0.3342, allocations: 173.8 kB / 454.3 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003414/0.3376, allocations: 2.131 MB / 456.4 MB, free: 4.918 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.457e-06/0.3376, allocations: 16 kB / 456.4 MB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/0.3377, allocations: 4 kB / 456.4 MB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.05e-05/0.3377, allocations: 3.984 kB / 456.4 MB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006631/0.3443, allocations: 4.824 MB / 461.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.3443, allocations: 8.188 kB / 461.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007161/0.3451, allocations: 163.8 kB / 461.4 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/0.3462, allocations: 457.7 kB / 461.8 MB, free: 15.33 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.272e-05/0.3463, allocations: 35.98 kB / 461.9 MB, free: 15.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008805/0.3551, allocations: 10.1 MB / 472 MB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.3551, allocations: 4.031 kB / 472 MB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004481/0.3596, allocations: 2.997 MB / 475 MB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007952/0.3604, allocations: 406.8 kB / 475.4 MB, free: 1.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003433/0.3607, allocations: 35.98 kB / 475.4 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008875/0.3616, allocations: 64.14 kB / 475.5 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.3619, allocations: 96.73 kB / 475.6 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.359e-05/0.3619, allocations: 43.92 kB / 475.6 MB, free: 0.793 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001549/0.3635, allocations: 1.17 MB / 476.8 MB, free: 15.63 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3635, allocations: 0 / 476.8 MB, free: 15.63 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00183/0.3653, allocations: 0.5431 MB / 477.3 MB, free: 15.09 MB / 398.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.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,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 (86): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004734/0.3701, allocations: 3.608 MB / 480.9 MB, free: 11.39 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00305/0.3732, allocations: 2.081 MB / 483 MB, free: 9.25 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3732, allocations: 0 / 483 MB, free: 9.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002018/0.3752, allocations: 1.526 MB / 484.5 MB, free: 7.656 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002084/0.3773, allocations: 487.1 kB / 485 MB, free: 7.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03566/0.413, allocations: 22.25 MB / 0.4954 GB, free: 15.36 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001765/0.4148, allocations: 2.281 MB / 0.4976 GB, free: 13.05 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001261/0.416, allocations: 387.7 kB / 0.498 GB, free: 12.67 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00123/0.4173, allocations: 1.097 MB / 0.499 GB, free: 11.57 MB / 430.1 MB Notification: Performance of SimCode: time 7.51e-07/0.4173, allocations: 0 / 0.499 GB, free: 11.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.22/3.637, allocations: 47.89 MB / 0.5458 GB, free: 147.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002475/3.637, allocations: 273.6 kB / 0.5461 GB, free: 147.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.285/7.923, allocations: 0 / 0.5461 GB, free: 147.1 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Inverter/IMC_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches