Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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 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_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_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.001287/0.001287, allocations: 104.1 kB / 17.58 MB, free: 5.555 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.001442/0.001442, allocations: 192.1 kB / 18.51 MB, free: 4.637 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.319/1.319, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001132/0.001132, allocations: 51.92 kB / 280.8 MB, free: 3.062 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07145/0.07259, allocations: 46.63 MB / 327.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.01343/0.08606, allocations: 12.76 MB / 340.2 MB, free: 7.531 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007089/0.09319, allocations: 4.272 MB / 344.4 MB, free: 3.242 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001202/0.09446, allocations: 75.69 kB / 344.5 MB, free: 3.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002151/0.09662, allocations: 0.9629 MB / 345.5 MB, free: 2.199 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002946/0.09958, allocations: 1.262 MB / 346.7 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001677/0.1013, allocations: 0.8534 MB / 347.6 MB, free: 76 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003856/0.1051, allocations: 3.888 MB / 351.5 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003388/0.1085, allocations: 3.173 MB / 354.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002214/0.1108, allocations: 1.823 MB / 356.5 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002382/0.1132, allocations: 2.047 MB / 358.5 MB, free: 5.039 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000705/0.1139, allocations: 0.5 MB / 359 MB, free: 4.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001336/0.1153, allocations: 0.7068 MB / 359.7 MB, free: 3.832 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008643/0.1161, allocations: 1.102 MB / 360.8 MB, free: 2.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002201/0.1183, allocations: 2.073 MB / 362.9 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006183/0.1245, allocations: 6.543 MB / 369.4 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.1246, allocations: 4 kB / 369.4 MB, free: 10.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1246, allocations: 0 / 369.4 MB, free: 10.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.419e-05/0.1247, allocations: 0 / 369.4 MB, free: 10.08 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01059/0.1353, allocations: 4.296 MB / 373.7 MB, free: 5.711 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.1353, allocations: 12.03 kB / 373.7 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005577/0.1359, allocations: 455.1 kB / 374.2 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004153/0.14, allocations: 0.8047 MB / 375 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003724/0.1438, allocations: 2.216 MB / 377.2 MB, free: 2.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001687/0.144, allocations: 234.4 kB / 377.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004817/0.1445, allocations: 311.9 kB / 377.7 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1327/0.2772, allocations: 4.217 MB / 382 MB, free: 48.04 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.106e-05/0.2773, allocations: 7.281 kB / 382 MB, free: 48.04 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000283/0.2776, allocations: 124.7 kB / 382.1 MB, free: 47.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001365/0.2778, allocations: 152.2 kB / 382.2 MB, free: 47.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006267/0.284, allocations: 3.598 MB / 385.8 MB, free: 46.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01666/0.3007, allocations: 13.2 MB / 399 MB, free: 38.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004906/0.3057, allocations: 6.898 MB / 405.9 MB, free: 31.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001766/0.3075, allocations: 1.366 MB / 407.3 MB, free: 30.91 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004645/0.3121, allocations: 3.727 MB / 411 MB, free: 28.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.955e-05/0.3122, allocations: 43.5 kB / 411.1 MB, free: 28.14 MB / 318.1 MB Notification: Performance of pre-optimization done (n=119): time 2.454e-06/0.3122, allocations: 0 / 411.1 MB, free: 28.14 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.008079/0.3203, allocations: 5.363 MB / 416.4 MB, free: 23.37 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.664e-05/0.3203, allocations: 64.41 kB / 416.5 MB, free: 23.29 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001731/0.322, allocations: 1.713 MB / 418.2 MB, free: 21.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.349e-05/0.3221, allocations: 45.7 kB / 418.3 MB, free: 21.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005348/0.3227, allocations: 1.398 MB / 419.7 MB, free: 20.11 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002043/0.3229, allocations: 429.1 kB / 420.1 MB, free: 19.7 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003343/0.3232, allocations: 283.3 kB / 420.3 MB, free: 19.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.289e-05/0.3233, allocations: 305.1 kB / 420.6 MB, free: 19.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008516/0.3241, allocations: 0.6442 MB / 421.3 MB, free: 18.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001/0.3251, allocations: 1.118 MB / 422.4 MB, free: 17.14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001931/0.3271, allocations: 1.867 MB / 424.3 MB, free: 15.08 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.3271, allocations: 8.766 kB / 424.3 MB, free: 15.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.00291/0.33, allocations: 2.311 MB / 426.6 MB, free: 12.72 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.095e-05/0.33, allocations: 16.22 kB / 426.6 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.496e-05/0.3301, allocations: 20 kB / 426.6 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005743/0.3306, allocations: 268.4 kB / 426.9 MB, free: 12.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/0.3318, allocations: 355.4 kB / 427.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003806/0.3357, allocations: 6.216 MB / 433.5 MB, free: 5.453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/0.3368, allocations: 71.86 kB / 433.5 MB, free: 5.383 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.982e-05/0.3369, allocations: 72 kB / 433.6 MB, free: 5.312 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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.001213/0.3381, allocations: 1.001 MB / 434.6 MB, free: 4.301 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002172/0.3384, allocations: 177.8 kB / 434.8 MB, free: 4.125 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002903/0.3413, allocations: 2.111 MB / 436.9 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.645e-06/0.3413, allocations: 12 kB / 436.9 MB, free: 1.938 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.3413, allocations: 8 kB / 436.9 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.3413, allocations: 11.95 kB / 436.9 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006465/0.3478, allocations: 4.822 MB / 441.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.655e-06/0.3478, allocations: 4 kB / 441.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007535/0.3486, allocations: 167.7 kB / 441.9 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001108/0.3497, allocations: 453.8 kB / 442.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.295e-05/0.3498, allocations: 39.98 kB / 442.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009699/0.3595, allocations: 11.04 MB / 453.4 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.3595, allocations: 0 / 453.4 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004749/0.3643, allocations: 2.989 MB / 456.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007642/0.3651, allocations: 402.8 kB / 456.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002322/0.3653, allocations: 31.98 kB / 456.8 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008314/0.3662, allocations: 74.23 kB / 456.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002622/0.3664, allocations: 92.75 kB / 457 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.659e-05/0.3665, allocations: 39.98 kB / 457 MB, free: 12.89 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001638/0.3682, allocations: 1.178 MB / 458.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3682, allocations: 0 / 458.2 MB, free: 11.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001783/0.37, allocations: 0.5352 MB / 458.7 MB, free: 11.19 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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,13,100.0%), (1,8,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.004903/0.3749, allocations: 3.601 MB / 462.4 MB, free: 7.488 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00428/0.3792, allocations: 2.407 MB / 464.8 MB, free: 5.043 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3792, allocations: 0 / 464.8 MB, free: 5.043 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002198/0.3814, allocations: 1.526 MB / 466.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002099/0.3835, allocations: 0.4953 MB / 466.8 MB, free: 2.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02886/0.4124, allocations: 21.05 MB / 487.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001973/0.4144, allocations: 2.281 MB / 490.1 MB, free: 9.988 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001328/0.4157, allocations: 379.8 kB / 490.5 MB, free: 9.613 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001261/0.417, allocations: 1.101 MB / 491.6 MB, free: 8.512 MB / 382.1 MB Notification: Performance of SimCode: time 6.52e-07/0.417, allocations: 4 kB / 491.6 MB, free: 8.508 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1331/0.5501, allocations: 49.07 MB / 0.528 GB, free: 7.293 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/10.61, allocations: 7.938 kB / 0.528 GB, free: 7.285 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Inverter/AIMC_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches