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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|mass.s|mass.v|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|mass.s|mass.v|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001274/0.001274, allocations: 181.3 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.4 MB / 223.1 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001307/0.001307, allocations: 88.22 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.0003522, allocations: 4 kB / 328.2 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2938, allocations: 47.57 MB / 375.8 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1406/0.4344, allocations: 112.9 MB / 488.7 MB, free: 15.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.4348, allocations: 91.95 kB / 488.8 MB, free: 15.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3954/0.8302, allocations: 83.67 MB / 0.5591 GB, free: 57.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.8302, allocations: 0 / 0.5591 GB, free: 57.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002218/0.8304, allocations: 79.88 kB / 0.5592 GB, free: 57.7 MB / 378.7 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.009732/0.8402, allocations: 3.633 MB / 0.5627 GB, free: 54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.8402, allocations: 8.031 kB / 0.5627 GB, free: 53.99 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004343/0.8446, allocations: 0.7411 MB / 0.5634 GB, free: 53.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009688/0.8543, allocations: 3.395 MB / 0.5668 GB, free: 49.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002484/0.8546, allocations: 238.4 kB / 0.567 GB, free: 49.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001014/0.8557, allocations: 319.9 kB / 0.5673 GB, free: 49.24 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007329/0.863, allocations: 4.194 MB / 0.5714 GB, free: 44.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.061e-05/0.8631, allocations: 15.92 kB / 0.5714 GB, free: 44.92 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002986/0.8634, allocations: 132 kB / 0.5715 GB, free: 44.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001231/0.8636, allocations: 146.4 kB / 0.5717 GB, free: 44.65 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005558/0.8691, allocations: 3.414 MB / 0.575 GB, free: 41.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01937/0.8885, allocations: 13.49 MB / 0.5882 GB, free: 27.4 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005288/0.8939, allocations: 6.96 MB / 0.595 GB, free: 19.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005529/0.8994, allocations: 3.316 MB / 0.5982 GB, free: 16.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001196/0.9007, allocations: 0.9157 MB / 0.5991 GB, free: 15.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=143): time 3.226e-06/0.9007, allocations: 4 kB / 0.5991 GB, free: 15.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=152): time 0.01222/0.9129, allocations: 6.936 MB / 0.6059 GB, free: 8.066 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.714e-05/0.913, allocations: 226.9 kB / 0.6061 GB, free: 7.793 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002258/0.9153, allocations: 1.654 MB / 0.6077 GB, free: 6.141 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.532e-05/0.9154, allocations: 57.7 kB / 0.6078 GB, free: 6.078 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001132/0.9166, allocations: 1.459 MB / 0.6092 GB, free: 4.602 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003009/0.9169, allocations: 0.516 MB / 0.6097 GB, free: 4.078 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.644e-05/0.917, allocations: 36 kB / 0.6097 GB, free: 4.043 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.996e-05/0.9171, allocations: 373.9 kB / 0.6101 GB, free: 3.672 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009458/0.918, allocations: 0.6949 MB / 0.6108 GB, free: 2.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001176/0.9192, allocations: 1.225 MB / 0.612 GB, free: 1.547 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001187/0.9204, allocations: 0.9199 MB / 0.6129 GB, free: 0.625 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.793e-06/0.9204, allocations: 8 kB / 0.6129 GB, free: 0.6172 MB / 378.7 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004112/0.9245, allocations: 2.498 MB / 0.6153 GB, free: 14.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.878e-05/0.9246, allocations: 8 kB / 0.6153 GB, free: 14.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.648e-05/0.9246, allocations: 16.31 kB / 0.6153 GB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008258/0.9254, allocations: 283.2 kB / 0.6156 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/0.927, allocations: 403.3 kB / 0.616 GB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005673/0.9327, allocations: 5.931 MB / 0.6218 GB, free: 7.035 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001809/0.9345, allocations: 103.9 kB / 0.6219 GB, free: 6.934 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.9347, allocations: 68 kB / 0.6219 GB, free: 6.867 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 200 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 4,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002334/0.937, allocations: 1.048 MB / 0.623 GB, free: 5.809 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004416/0.9374, allocations: 201.6 kB / 0.6232 GB, free: 5.609 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004493/0.9419, allocations: 2.379 MB / 0.6255 GB, free: 3.164 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.74e-05/0.942, allocations: 16 kB / 0.6255 GB, free: 3.148 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-05/0.942, allocations: 8 kB / 0.6255 GB, free: 3.141 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.942, allocations: 11.97 kB / 0.6255 GB, free: 3.129 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/0.9535, allocations: 5.424 MB / 0.6308 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.819e-06/0.9535, allocations: 4 kB / 0.6308 GB, free: 13.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009386/0.9545, allocations: 207.7 kB / 0.631 GB, free: 13.36 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001349/0.9559, allocations: 464.2 kB / 0.6315 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001307/0.956, allocations: 39.98 kB / 0.6315 GB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01068/0.9667, allocations: 10.32 MB / 0.6416 GB, free: 1.871 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.9667, allocations: 0 / 0.6416 GB, free: 1.871 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2545/1.221, allocations: 3.425 MB / 0.6449 GB, free: 86.78 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001449/1.223, allocations: 456.6 kB / 0.6453 GB, free: 86.68 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003678/1.223, allocations: 40.22 kB / 0.6454 GB, free: 86.68 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/1.224, allocations: 78.58 kB / 0.6455 GB, free: 86.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002989/1.224, allocations: 111.5 kB / 0.6456 GB, free: 86.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.609e-05/1.225, allocations: 47.52 kB / 0.6456 GB, free: 86.68 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00193/1.227, allocations: 1.276 MB / 0.6469 GB, free: 86.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.227, allocations: 0.875 kB / 0.6469 GB, free: 86.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002667/1.229, allocations: 0.6398 MB / 0.6475 GB, free: 86.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (115): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 3,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001463/1.231, allocations: 0.6599 MB / 0.6481 GB, free: 86.39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003315/1.234, allocations: 2.27 MB / 0.6503 GB, free: 85.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.157e-06/1.234, allocations: 0 / 0.6503 GB, free: 85.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0021/1.236, allocations: 1.64 MB / 0.6519 GB, free: 85.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00223/1.238, allocations: 0.5029 MB / 0.6524 GB, free: 85.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0097/1.248, allocations: 7.15 MB / 0.6594 GB, free: 82.33 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001782/1.25, allocations: 2.409 MB / 0.6618 GB, free: 81.55 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001695/1.252, allocations: 430.9 kB / 0.6622 GB, free: 81.49 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003595/1.252, allocations: 136.6 kB / 0.6623 GB, free: 81.49 MB / 410.7 MB Notification: Performance of SimCode: time 9.62e-07/1.252, allocations: 0 / 0.6623 GB, free: 81.49 MB / 410.7 MB Notification: Performance of Templates: time 0.0634/1.315, allocations: 31.03 MB / 0.6926 GB, free: 79.36 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.makefile (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 & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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