Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.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_Conveyor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor",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.001634/0.001634, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001642/0.001642, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.589/2.589, 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.002109/0.002109, allocations: 55.92 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.1738, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.02297/0.1969, allocations: 13.38 MB / 340.8 MB, free: 6.922 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01789/0.2148, allocations: 4.748 MB / 345.5 MB, free: 2.156 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00475/0.2197, allocations: 71.69 kB / 345.6 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006164/0.2259, allocations: 1.091 MB / 346.7 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009617/0.2356, allocations: 1.367 MB / 348 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006227/0.2419, allocations: 0.9858 MB / 349 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01277/0.2547, allocations: 4.043 MB / 353.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01116/0.2659, allocations: 3.197 MB / 356.3 MB, free: 7.293 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006143/0.2721, allocations: 1.908 MB / 358.2 MB, free: 5.379 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006055/0.2782, allocations: 2.148 MB / 360.3 MB, free: 3.223 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002506/0.2808, allocations: 0.5078 MB / 360.8 MB, free: 2.715 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004248/0.2851, allocations: 0.7575 MB / 361.6 MB, free: 1.957 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003271/0.2884, allocations: 1.149 MB / 362.7 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005896/0.2943, allocations: 2.147 MB / 364.9 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01422/0.3086, allocations: 6.73 MB / 371.6 MB, free: 7.898 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.227e-05/0.3087, allocations: 0 / 371.6 MB, free: 7.898 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.817e-06/0.3088, allocations: 0 / 371.6 MB, free: 7.898 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003238/0.3091, allocations: 0 / 371.6 MB, free: 7.898 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: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.01973/0.3289, allocations: 4.499 MB / 376.1 MB, free: 3.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.015e-05/0.329, allocations: 12.03 kB / 376.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002186/0.3312, allocations: 455.7 kB / 376.6 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006378/0.3376, allocations: 0.8279 MB / 377.4 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2869/0.6245, allocations: 2.294 MB / 379.7 MB, free: 48.22 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003163/0.6249, allocations: 240.4 kB / 379.9 MB, free: 48.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001367/0.6262, allocations: 317.6 kB / 380.2 MB, free: 48.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01138/0.6376, allocations: 4.287 MB / 384.5 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.87e-05/0.6378, allocations: 4.656 kB / 384.5 MB, free: 46.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000352/0.6382, allocations: 131.2 kB / 384.7 MB, free: 46.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000252/0.6384, allocations: 153.8 kB / 384.8 MB, free: 46.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00955/0.648, allocations: 3.616 MB / 388.4 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02419/0.6722, allocations: 13.43 MB / 401.9 MB, free: 36.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006343/0.6786, allocations: 6.951 MB / 408.8 MB, free: 30 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003872/0.6826, allocations: 1.388 MB / 410.2 MB, free: 29.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009133/0.6918, allocations: 3.84 MB / 414 MB, free: 25.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001723/0.6936, allocations: 0.8442 MB / 414.9 MB, free: 24.71 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 6.582e-06/0.6936, allocations: 0 / 414.9 MB, free: 24.71 MB / 318.1 MB Notification: Performance of matching and sorting (n=139): time 0.02171/0.7153, allocations: 6.501 MB / 421.4 MB, free: 18.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002179/0.7156, allocations: 230.8 kB / 421.6 MB, free: 17.74 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005744/0.7214, allocations: 1.907 MB / 423.5 MB, free: 15.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004893/0.722, allocations: 53.7 kB / 423.6 MB, free: 15.78 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002484/0.7245, allocations: 1.477 MB / 425 MB, free: 14.29 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009248/0.7255, allocations: 488.8 kB / 425.5 MB, free: 13.82 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007491/0.7262, allocations: 311.3 kB / 425.8 MB, free: 13.51 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.138e-05/0.7263, allocations: 301.1 kB / 426.1 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001643/0.728, allocations: 0.6598 MB / 426.8 MB, free: 12.55 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002092/0.7301, allocations: 1.214 MB / 428 MB, free: 11.11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00388/0.734, allocations: 1.937 MB / 429.9 MB, free: 8.977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.52e-05/0.734, allocations: 4 kB / 429.9 MB, free: 8.973 MB / 318.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.007006/0.7411, allocations: 2.42 MB / 432.4 MB, free: 6.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.287e-05/0.7412, allocations: 12 kB / 432.4 MB, free: 6.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.05e-05/0.7412, allocations: 16 kB / 432.4 MB, free: 6.484 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.7425, allocations: 299.9 kB / 432.7 MB, free: 6.184 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002746/0.7453, allocations: 383.4 kB / 433 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008412/0.7537, allocations: 6.383 MB / 439.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002941/0.7568, allocations: 87.95 kB / 439.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004717/0.7573, allocations: 71.98 kB / 439.6 MB, free: 14.86 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.dutyCycle.nextTimeEvent,$whenCondition1,dutyCycle.nextTimeEventScaled,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 192 * 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,4,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.003664/0.761, allocations: 1.035 MB / 440.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008574/0.7618, allocations: 197.6 kB / 440.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007795/0.7696, allocations: 2.256 MB / 443.1 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.533e-05/0.7698, allocations: 12 kB / 443.1 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.37e-05/0.7698, allocations: 8 kB / 443.1 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.623e-05/0.7699, allocations: 7.969 kB / 443.1 MB, free: 11.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01479/0.7847, allocations: 5.108 MB / 448.2 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-05/0.7848, allocations: 0 / 448.2 MB, free: 6.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009784/0.7857, allocations: 187.7 kB / 448.4 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00154/0.7873, allocations: 465.5 kB / 448.8 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001456/0.7875, allocations: 35.98 kB / 448.9 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/0.8003, allocations: 11.14 MB / 460 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.8004, allocations: 0 / 460 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006907/0.8073, allocations: 3.145 MB / 463.2 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001537/0.8089, allocations: 428.3 kB / 463.6 MB, free: 5.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001032/0.8099, allocations: 39.98 kB / 463.6 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001978/0.8119, allocations: 55.95 kB / 463.7 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004737/0.8125, allocations: 105.2 kB / 463.8 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001228/0.8126, allocations: 39.98 kB / 463.8 MB, free: 5.672 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00345/0.816, allocations: 1.315 MB / 465.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8161, allocations: 0 / 465.1 MB, free: 4.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00374/0.8198, allocations: 0.5808 MB / 465.7 MB, free: 3.789 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 7 (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,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 95 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,13,100.0%), (1,3,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.008089/0.8279, allocations: 4.055 MB / 469.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005932/0.8339, allocations: 2.585 MB / 472.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.844e-06/0.834, allocations: 1.812 kB / 472.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002816/0.8368, allocations: 1.569 MB / 473.9 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003716/0.8406, allocations: 0.5406 MB / 474.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04697/0.8875, allocations: 22.43 MB / 496.9 MB, free: 2.648 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002644/0.8902, allocations: 2.352 MB / 499.2 MB, free: 272 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00193/0.8922, allocations: 405 kB / 499.6 MB, free: 15.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001768/0.894, allocations: 1.167 MB / 0.4891 GB, free: 14.7 MB / 398.1 MB Notification: Performance of SimCode: time 2.014e-06/0.894, allocations: 0 / 0.4891 GB, free: 14.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4213/1.315, allocations: 53.16 MB / 0.541 GB, free: 143.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.07/18.39, allocations: 4.938 kB / 0.541 GB, free: 143.1 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Conveyor/AIMC_Conveyor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches