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.00112/0.00112, allocations: 107.1 kB / 17.59 MB, free: 5.543 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.001186/0.001187, allocations: 192 kB / 18.51 MB, free: 4.625 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.254/1.254, 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.001204/0.001204, allocations: 55.92 kB / 280.8 MB, free: 3.062 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07743/0.07865, allocations: 46.62 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01476/0.09344, allocations: 13.38 MB / 340.8 MB, free: 6.918 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007731/0.1012, allocations: 4.748 MB / 345.5 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001584/0.1028, allocations: 71.69 kB / 345.6 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002758/0.1056, allocations: 1.095 MB / 346.7 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003624/0.1092, allocations: 1.367 MB / 348 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00231/0.1116, allocations: 0.9703 MB / 349 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004333/0.1159, allocations: 4.051 MB / 353.1 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003329/0.1193, allocations: 3.205 MB / 356.3 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002823/0.1221, allocations: 1.893 MB / 358.2 MB, free: 5.387 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002592/0.1247, allocations: 2.16 MB / 360.3 MB, free: 3.219 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000638/0.1253, allocations: 0.5078 MB / 360.8 MB, free: 2.711 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001445/0.1268, allocations: 0.7575 MB / 361.6 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008789/0.1277, allocations: 1.141 MB / 362.7 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002063/0.1298, allocations: 2.147 MB / 364.9 MB, free: 14.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006061/0.1358, allocations: 6.738 MB / 371.6 MB, free: 7.895 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1359, allocations: 0 / 371.6 MB, free: 7.895 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.1359, allocations: 4 kB / 371.6 MB, free: 7.891 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.454e-05/0.136, allocations: 0 / 371.6 MB, free: 7.891 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.009704/0.1457, allocations: 4.495 MB / 376.1 MB, free: 3.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1457, allocations: 8.031 kB / 376.1 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005302/0.1463, allocations: 455.7 kB / 376.6 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004052/0.1503, allocations: 0.824 MB / 377.4 MB, free: 2.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1231/0.2734, allocations: 2.293 MB / 379.7 MB, free: 48.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002065/0.2736, allocations: 238.4 kB / 379.9 MB, free: 48.92 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007587/0.2744, allocations: 322.9 kB / 380.2 MB, free: 48.92 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006608/0.281, allocations: 4.288 MB / 384.5 MB, free: 47.17 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.434e-05/0.2811, allocations: 3.25 kB / 384.5 MB, free: 47.17 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002719/0.2814, allocations: 131.5 kB / 384.7 MB, free: 47.07 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000156/0.2815, allocations: 149.5 kB / 384.8 MB, free: 47.05 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0057/0.2872, allocations: 3.624 MB / 388.4 MB, free: 45.63 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01498/0.3022, allocations: 13.43 MB / 401.9 MB, free: 36.97 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004679/0.3069, allocations: 6.957 MB / 408.8 MB, free: 30.33 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001738/0.3087, allocations: 1.385 MB / 410.2 MB, free: 29.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004304/0.313, allocations: 3.838 MB / 414 MB, free: 25.76 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009322/0.314, allocations: 0.8492 MB / 414.9 MB, free: 24.88 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 3.065e-06/0.314, allocations: 0 / 414.9 MB, free: 24.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=139): time 0.009144/0.3231, allocations: 6.494 MB / 421.4 MB, free: 18.19 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.3232, allocations: 238.6 kB / 421.6 MB, free: 17.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00186/0.3251, allocations: 1.911 MB / 423.5 MB, free: 16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.852e-05/0.3251, allocations: 45.7 kB / 423.6 MB, free: 15.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007802/0.3259, allocations: 1.478 MB / 425 MB, free: 14.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/0.3262, allocations: 484.2 kB / 425.5 MB, free: 13.99 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003632/0.3265, allocations: 307.3 kB / 425.8 MB, free: 13.68 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.222e-05/0.3266, allocations: 309.1 kB / 426.1 MB, free: 13.38 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008243/0.3274, allocations: 0.6598 MB / 426.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.3285, allocations: 1.21 MB / 428 MB, free: 11.29 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001862/0.3303, allocations: 1.941 MB / 429.9 MB, free: 9.141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.3303, allocations: 7.609 kB / 429.9 MB, free: 9.137 MB / 318.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.002939/0.3333, allocations: 2.424 MB / 432.4 MB, free: 6.672 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.3333, allocations: 12 kB / 432.4 MB, free: 6.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.3333, allocations: 16 kB / 432.4 MB, free: 6.645 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005765/0.3339, allocations: 292.1 kB / 432.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001197/0.3351, allocations: 379.4 kB / 433 MB, free: 5.977 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004201/0.3393, allocations: 6.381 MB / 439.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/0.3405, allocations: 89.11 kB / 439.5 MB, free: 15.1 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/0.3406, allocations: 75.98 kB / 439.6 MB, free: 15.03 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.001454/0.3421, allocations: 1.035 MB / 440.6 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002619/0.3423, allocations: 197.6 kB / 440.8 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003741/0.3461, allocations: 2.253 MB / 443.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.235e-05/0.3461, allocations: 15.98 kB / 443.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/0.3461, allocations: 8 kB / 443.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.402e-05/0.3461, allocations: 3.984 kB / 443.1 MB, free: 11.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007196/0.3533, allocations: 5.102 MB / 448.2 MB, free: 6.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.3534, allocations: 4 kB / 448.2 MB, free: 6.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007588/0.3541, allocations: 183.8 kB / 448.4 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001117/0.3553, allocations: 477.4 kB / 448.8 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.619e-05/0.3554, allocations: 39.98 kB / 448.9 MB, free: 5.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01031/0.3657, allocations: 11.13 MB / 460 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3657, allocations: 8.031 kB / 460 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004797/0.3705, allocations: 3.133 MB / 463.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008363/0.3713, allocations: 438.5 kB / 463.6 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003377/0.3717, allocations: 33.75 kB / 463.6 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009217/0.3726, allocations: 60 kB / 463.7 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.3729, allocations: 109.1 kB / 463.8 MB, free: 5.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.959e-05/0.3729, allocations: 39.98 kB / 463.8 MB, free: 5.836 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001921/0.3749, allocations: 1.319 MB / 465.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3749, allocations: 0 / 465.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001935/0.3768, allocations: 0.5768 MB / 465.7 MB, free: 3.953 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.005723/0.3825, allocations: 4.055 MB / 469.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004763/0.3873, allocations: 2.585 MB / 472.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/0.3873, allocations: 0 / 472.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002256/0.3896, allocations: 1.568 MB / 473.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00233/0.3919, allocations: 0.5522 MB / 474.5 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03027/0.4222, allocations: 22.41 MB / 496.9 MB, free: 2.816 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002013/0.4243, allocations: 2.352 MB / 499.2 MB, free: 444 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001317/0.4256, allocations: 409 kB / 499.6 MB, free: 32 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001392/0.427, allocations: 1.16 MB / 0.4891 GB, free: 14.88 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.427, allocations: 4 kB / 0.4891 GB, free: 14.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2194/0.6464, allocations: 53.16 MB / 0.541 GB, free: 143.3 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/11, allocations: 7.656 kB / 0.541 GB, free: 143.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 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.mat","/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