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.001606/0.001606, allocations: 108.2 kB / 17.73 MB, free: 5.234 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.001225/0.001225, allocations: 188 kB / 18.66 MB, free: 4.309 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.341/1.341, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001336/0.001336, allocations: 47.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1054, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.2348/0.3402, allocations: 13.38 MB / 388 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009499/0.3497, allocations: 4.752 MB / 392.8 MB, free: 2.586 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002724/0.3526, allocations: 71.84 kB / 392.9 MB, free: 2.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002973/0.3555, allocations: 1.098 MB / 394 MB, free: 2.02 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004783/0.3603, allocations: 1.363 MB / 395.3 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002944/0.3633, allocations: 0.9748 MB / 396.3 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006429/0.3697, allocations: 4.07 MB / 400.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004308/0.3741, allocations: 3.203 MB / 403.6 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003866/0.378, allocations: 1.915 MB / 405.5 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003849/0.3818, allocations: 2.166 MB / 407.6 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008906/0.3827, allocations: 0.5085 MB / 408.2 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001908/0.3846, allocations: 0.7479 MB / 408.9 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001149/0.3858, allocations: 1.141 MB / 410 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003037/0.3888, allocations: 2.145 MB / 412.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0085/0.3974, allocations: 6.786 MB / 419 MB, free: 3.512 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.3974, allocations: 1.375 kB / 419 MB, free: 3.512 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3974, allocations: 3.938 kB / 419 MB, free: 3.508 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001791/0.3976, allocations: 0 / 419 MB, free: 3.508 MB / 334.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.01155/0.4091, allocations: 4.484 MB / 423.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.4092, allocations: 8.031 kB / 423.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005808/0.4098, allocations: 459.7 kB / 423.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003978/0.4138, allocations: 0.8239 MB / 424.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003725/0.4175, allocations: 2.322 MB / 427.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001649/0.4177, allocations: 242.4 kB / 427.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004404/0.4181, allocations: 323.9 kB / 427.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006717/0.4249, allocations: 4.276 MB / 431.9 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.661e-05/0.4249, allocations: 7.984 kB / 431.9 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002888/0.4252, allocations: 136 kB / 432 MB, free: 6.352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001363/0.4254, allocations: 150.4 kB / 432.2 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006025/0.4314, allocations: 3.621 MB / 435.8 MB, free: 2.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02174/0.4532, allocations: 13.25 MB / 449.1 MB, free: 4.988 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006974/0.4602, allocations: 6.964 MB / 456 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002176/0.4624, allocations: 1.364 MB / 457.4 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006815/0.4692, allocations: 3.824 MB / 461.2 MB, free: 7.828 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001359/0.4706, allocations: 0.8571 MB / 462.1 MB, free: 6.938 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.606e-06/0.4706, allocations: 0 / 462.1 MB, free: 6.938 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.0125/0.4832, allocations: 6.485 MB / 468.6 MB, free: 252 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.4833, allocations: 222.9 kB / 468.8 MB, free: 15.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003319/0.4866, allocations: 1.918 MB / 470.7 MB, free: 14.06 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001114/0.4868, allocations: 45.7 kB / 470.7 MB, free: 14.01 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001433/0.4882, allocations: 1.478 MB / 472.2 MB, free: 12.52 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004133/0.4886, allocations: 493 kB / 472.7 MB, free: 12.03 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005197/0.4892, allocations: 307.3 kB / 473 MB, free: 11.72 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.4893, allocations: 301.1 kB / 473.3 MB, free: 11.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.4904, allocations: 0.6637 MB / 473.9 MB, free: 10.76 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001468/0.4919, allocations: 1.214 MB / 475.2 MB, free: 9.324 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002551/0.4944, allocations: 1.932 MB / 477.1 MB, free: 7.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.204e-05/0.4944, allocations: 7.938 kB / 477.1 MB, free: 7.176 MB / 398.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004092/0.4985, allocations: 2.432 MB / 479.5 MB, free: 4.703 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.423e-05/0.4986, allocations: 12 kB / 479.5 MB, free: 4.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.565e-05/0.4986, allocations: 12 kB / 479.6 MB, free: 4.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007626/0.4994, allocations: 287.5 kB / 479.8 MB, free: 4.387 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001423/0.5008, allocations: 387.4 kB / 480.2 MB, free: 4.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006431/0.5073, allocations: 6.374 MB / 486.6 MB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.509, allocations: 87.95 kB / 486.7 MB, free: 13.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001706/0.5092, allocations: 68 kB / 486.7 MB, free: 13.07 MB / 414.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.001918/0.5111, allocations: 1.033 MB / 487.8 MB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005343/0.5117, allocations: 209.4 kB / 488 MB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004151/0.5158, allocations: 2.257 MB / 490.2 MB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.193e-05/0.5158, allocations: 12 kB / 490.3 MB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2e-05/0.5159, allocations: 8 kB / 490.3 MB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.589e-05/0.5159, allocations: 7.969 kB / 490.3 MB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008815/0.5247, allocations: 5.085 MB / 495.4 MB, free: 4.254 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.5247, allocations: 4 kB / 495.4 MB, free: 4.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007852/0.5255, allocations: 179.8 kB / 495.5 MB, free: 4.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001223/0.5268, allocations: 464.2 kB / 496 MB, free: 3.605 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001075/0.5269, allocations: 40.05 kB / 496 MB, free: 3.566 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01075/0.5376, allocations: 11.14 MB / 0.4953 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.5377, allocations: 0 / 0.4953 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005255/0.5429, allocations: 3.144 MB / 0.4983 GB, free: 4.484 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001072/0.544, allocations: 426.5 kB / 0.4988 GB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005296/0.5446, allocations: 35.98 kB / 0.4988 GB, free: 4.012 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001144/0.5457, allocations: 59.95 kB / 0.4988 GB, free: 3.953 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000252/0.546, allocations: 109.1 kB / 0.4989 GB, free: 3.848 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.783e-05/0.5461, allocations: 39.98 kB / 0.499 GB, free: 3.809 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002486/0.5486, allocations: 1.315 MB / 0.5003 GB, free: 2.504 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5486, allocations: 0 / 0.5003 GB, free: 2.504 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002413/0.551, allocations: 0.582 MB / 0.5008 GB, free: 1.922 MB / 430.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.006319/0.5573, allocations: 4.049 MB / 0.5048 GB, free: 13.78 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003736/0.5611, allocations: 2.171 MB / 0.5069 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.279e-06/0.5611, allocations: 0 / 0.5069 GB, free: 11.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002492/0.5636, allocations: 1.592 MB / 0.5085 GB, free: 9.898 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002843/0.5665, allocations: 0.5406 MB / 0.509 GB, free: 9.355 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03524/0.6017, allocations: 20.01 MB / 0.5285 GB, free: 4.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003028/0.6048, allocations: 2.356 MB / 0.5308 GB, free: 2.273 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001614/0.6064, allocations: 409 kB / 0.5312 GB, free: 1.871 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00183/0.6083, allocations: 1.167 MB / 0.5324 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of SimCode: time 1.172e-06/0.6083, allocations: 0 / 0.5324 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.292/0.9003, allocations: 54.75 MB / 0.5858 GB, free: 138.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/14.13, allocations: 0.8906 kB / 0.5858 GB, free: 138.1 MB / 478.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