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.000971/0.000971, allocations: 92.83 kB / 17.3 MB, free: 6.395 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.000973/0.0009732, allocations: 172.5 kB / 18.2 MB, free: 5.551 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.256/1.256, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004064/0.0004065, allocations: 12 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07526/0.07568, allocations: 47.58 MB / 329.1 MB, free: 3.652 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01258/0.0883, allocations: 12.58 MB / 341.6 MB, free: 7.016 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007808/0.09615, allocations: 4.635 MB / 346.3 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001773/0.09795, allocations: 67.69 kB / 346.3 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002691/0.1007, allocations: 0.9565 MB / 347.3 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003903/0.1046, allocations: 1.244 MB / 348.5 MB, free: 88 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002055/0.1067, allocations: 0.8812 MB / 349.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004608/0.1113, allocations: 4.324 MB / 353.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002806/0.1141, allocations: 2.639 MB / 356.4 MB, free: 8.152 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001564/0.1157, allocations: 1.338 MB / 357.7 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001782/0.1175, allocations: 1.762 MB / 359.5 MB, free: 5.039 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003019/0.1178, allocations: 208 kB / 359.7 MB, free: 4.836 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009298/0.1187, allocations: 451.7 kB / 360.1 MB, free: 4.395 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006172/0.1193, allocations: 0.786 MB / 360.9 MB, free: 3.605 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001464/0.1208, allocations: 1.77 MB / 362.7 MB, free: 1.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004797/0.1256, allocations: 6.357 MB / 369 MB, free: 11.44 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1256, allocations: 0 / 369 MB, free: 11.44 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1256, allocations: 0 / 369 MB, free: 11.44 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.643e-05/0.1257, allocations: 3.938 kB / 369 MB, free: 11.44 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.008524/0.1343, allocations: 3.786 MB / 372.8 MB, free: 7.578 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.1343, allocations: 8.031 kB / 372.8 MB, free: 7.57 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006808/0.135, allocations: 463.7 kB / 373.3 MB, free: 7.105 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004128/0.1391, allocations: 0.824 MB / 374.1 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003858/0.143, allocations: 2.26 MB / 376.4 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001866/0.1432, allocations: 238.4 kB / 376.6 MB, free: 3.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005693/0.1438, allocations: 319.9 kB / 376.9 MB, free: 3.414 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1494/0.2932, allocations: 4.284 MB / 381.2 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.819e-05/0.2933, allocations: 2.781 kB / 381.2 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002791/0.2936, allocations: 131.8 kB / 381.3 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001503/0.2937, allocations: 152.6 kB / 381.5 MB, free: 45.99 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006529/0.3002, allocations: 3.624 MB / 385.1 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0192/0.3195, allocations: 13.49 MB / 398.6 MB, free: 37.1 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004877/0.3244, allocations: 6.96 MB / 405.6 MB, free: 30.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001662/0.3261, allocations: 1.384 MB / 406.9 MB, free: 29.79 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004569/0.3306, allocations: 3.861 MB / 410.8 MB, free: 26.99 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009659/0.3316, allocations: 0.848 MB / 411.7 MB, free: 26.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=131): time 2.445e-06/0.3316, allocations: 0 / 411.7 MB, free: 26.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=139): time 0.009317/0.341, allocations: 6.527 MB / 418.2 MB, free: 21.36 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.944e-05/0.341, allocations: 222.9 kB / 418.4 MB, free: 21.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00188/0.3429, allocations: 1.914 MB / 420.3 MB, free: 19.17 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.234e-05/0.343, allocations: 53.7 kB / 420.4 MB, free: 19.11 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007537/0.3438, allocations: 1.473 MB / 421.8 MB, free: 17.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002316/0.344, allocations: 485.6 kB / 422.3 MB, free: 17.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.3442, allocations: 137.6 kB / 422.4 MB, free: 17.02 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.257e-05/0.3442, allocations: 305.1 kB / 422.7 MB, free: 16.71 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008608/0.3451, allocations: 0.6637 MB / 423.4 MB, free: 16.05 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001033/0.3461, allocations: 1.218 MB / 424.6 MB, free: 14.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001892/0.348, allocations: 1.944 MB / 426.6 MB, free: 12.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/0.348, allocations: 4 kB / 426.6 MB, free: 12.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.002969/0.351, allocations: 2.435 MB / 429 MB, free: 9.988 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.351, allocations: 12 kB / 429 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/0.3511, allocations: 16 kB / 429 MB, free: 9.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005937/0.3517, allocations: 288.5 kB / 429.3 MB, free: 9.668 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.3529, allocations: 379.4 kB / 429.7 MB, free: 9.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00381/0.3567, allocations: 5.868 MB / 435.6 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/0.3582, allocations: 96.02 kB / 435.7 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.3583, allocations: 75.83 kB / 435.7 MB, free: 2.879 MB / 318.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.001654/0.36, allocations: 1.028 MB / 436.8 MB, free: 1.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002766/0.3603, allocations: 197.6 kB / 436.9 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003361/0.3636, allocations: 2.257 MB / 439.2 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.407e-05/0.3637, allocations: 20 kB / 439.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.3637, allocations: 4 kB / 439.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.494e-05/0.3637, allocations: 7.969 kB / 439.2 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007385/0.3711, allocations: 5.118 MB / 444.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3711, allocations: 0 / 444.4 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007352/0.3719, allocations: 179.7 kB / 444.5 MB, free: 9.895 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001093/0.373, allocations: 464.8 kB / 445 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.409e-05/0.3731, allocations: 43.92 kB / 445 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00892/0.382, allocations: 10.19 MB / 455.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.382, allocations: 4.062 kB / 455.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004512/0.3865, allocations: 3.135 MB / 458.4 MB, free: 11.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007027/0.3872, allocations: 442.5 kB / 458.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002233/0.3875, allocations: 32.34 kB / 458.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008157/0.3883, allocations: 75.94 kB / 458.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002106/0.3885, allocations: 105.1 kB / 459 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.936e-05/0.3886, allocations: 47.92 kB / 459 MB, free: 10.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001718/0.3904, allocations: 1.315 MB / 460.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3904, allocations: 0 / 460.4 MB, free: 9.316 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001747/0.3921, allocations: 0.5768 MB / 460.9 MB, free: 8.742 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.005488/0.3976, allocations: 4.048 MB / 465 MB, free: 4.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003109/0.4007, allocations: 2.178 MB / 467.2 MB, free: 2.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.4007, allocations: 4.25 kB / 467.2 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002097/0.4029, allocations: 1.575 MB / 468.7 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002476/0.4053, allocations: 0.5064 MB / 469.2 MB, free: 256 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04018/0.4455, allocations: 23.87 MB / 493.1 MB, free: 6.574 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001915/0.4475, allocations: 2.351 MB / 495.5 MB, free: 4.195 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00135/0.4488, allocations: 405 kB / 495.9 MB, free: 3.797 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/0.4502, allocations: 1.163 MB / 497 MB, free: 2.637 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.4502, allocations: 0 / 497 MB, free: 2.637 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8887/1.339, allocations: 51.13 MB / 0.5353 GB, free: 133.7 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001594/1.339, allocations: 287.2 kB / 0.5356 GB, free: 133.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.334/4.673, allocations: 0 / 0.5356 GB, free: 133.4 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","../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