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: 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001627/0.001627, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001951/0.001951, allocations: 183.1 kB / 18.66 MB, free: 4.414 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.455/1.455, 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.001156/0.001156, allocations: 55.92 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1295, allocations: 46.62 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.2417/0.3712, allocations: 13.37 MB / 388.5 MB, free: 6.199 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008749/0.38, allocations: 4.752 MB / 393.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002951/0.3831, allocations: 67.59 kB / 393.4 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00376/0.3868, allocations: 1.107 MB / 394.5 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005725/0.3926, allocations: 1.36 MB / 395.8 MB, free: 1.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003205/0.3958, allocations: 0.9754 MB / 396.8 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006963/0.4028, allocations: 4.059 MB / 400.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005496/0.4083, allocations: 3.209 MB / 404.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003988/0.4123, allocations: 1.902 MB / 406 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004992/0.4173, allocations: 2.163 MB / 408.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001596/0.4189, allocations: 0.5094 MB / 408.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003385/0.4223, allocations: 0.7485 MB / 409.4 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00176/0.4241, allocations: 1.143 MB / 410.5 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003249/0.4274, allocations: 2.148 MB / 412.7 MB, free: 8.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007696/0.4351, allocations: 6.807 MB / 419.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.4351, allocations: 0 / 419.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4351, allocations: 0 / 419.5 MB, free: 3.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001616/0.4353, allocations: 0 / 419.5 MB, free: 3.449 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.01221/0.4475, allocations: 4.576 MB / 424.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.4476, allocations: 11.97 kB / 424.1 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004214/0.4518, allocations: 0.8455 MB / 424.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004046/0.4559, allocations: 2.332 MB / 427.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001849/0.4561, allocations: 242.4 kB / 427.5 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004817/0.4566, allocations: 323.9 kB / 427.8 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007224/0.4638, allocations: 4.288 MB / 432.1 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.001e-05/0.4639, allocations: 3.953 kB / 432.1 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002975/0.4642, allocations: 128 kB / 432.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001429/0.4644, allocations: 154.4 kB / 432.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006158/0.4705, allocations: 3.617 MB / 436 MB, free: 2.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0206/0.4911, allocations: 13.29 MB / 449.3 MB, free: 5.125 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006771/0.498, allocations: 6.972 MB / 456.3 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002164/0.5002, allocations: 1.364 MB / 457.6 MB, free: 11.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006204/0.5064, allocations: 3.821 MB / 461.4 MB, free: 7.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/0.5077, allocations: 0.8493 MB / 462.3 MB, free: 7.078 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.887e-06/0.5077, allocations: 3.984 kB / 462.3 MB, free: 7.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01218/0.5199, allocations: 6.545 MB / 468.8 MB, free: 336 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001194/0.52, allocations: 226.9 kB / 469.1 MB, free: 60 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002696/0.5227, allocations: 1.915 MB / 471 MB, free: 14.14 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001095/0.5228, allocations: 45.7 kB / 471 MB, free: 14.09 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00134/0.5242, allocations: 1.514 MB / 472.5 MB, free: 12.57 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004437/0.5246, allocations: 0.4997 MB / 473 MB, free: 12.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004675/0.5251, allocations: 311.5 kB / 473.3 MB, free: 11.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.5252, allocations: 305.1 kB / 473.6 MB, free: 11.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.5263, allocations: 0.6598 MB / 474.3 MB, free: 10.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.5277, allocations: 1.214 MB / 475.5 MB, free: 9.355 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002498/0.5302, allocations: 1.936 MB / 477.4 MB, free: 7.211 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.193e-06/0.5302, allocations: 4 kB / 477.4 MB, free: 7.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.003896/0.5341, allocations: 2.437 MB / 479.9 MB, free: 4.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.5342, allocations: 12 kB / 479.9 MB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.347e-05/0.5342, allocations: 16 kB / 479.9 MB, free: 4.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007693/0.535, allocations: 295.5 kB / 480.2 MB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001394/0.5364, allocations: 379.4 kB / 480.6 MB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005894/0.5423, allocations: 6.383 MB / 487 MB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001789/0.5441, allocations: 87.91 kB / 487 MB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001874/0.5443, allocations: 75.98 kB / 487.1 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.002168/0.5465, allocations: 1.04 MB / 488.2 MB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005368/0.547, allocations: 210.7 kB / 488.4 MB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003971/0.551, allocations: 2.246 MB / 490.6 MB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.551, allocations: 16 kB / 490.6 MB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.531e-05/0.5511, allocations: 4 kB / 490.6 MB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.942e-05/0.5511, allocations: 11.97 kB / 490.6 MB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008345/0.5594, allocations: 5.088 MB / 495.7 MB, free: 4.258 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.5595, allocations: 0 / 495.7 MB, free: 4.258 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007772/0.5603, allocations: 179.7 kB / 495.9 MB, free: 4.082 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001209/0.5615, allocations: 476.4 kB / 496.4 MB, free: 3.602 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.914e-05/0.5616, allocations: 43.92 kB / 496.4 MB, free: 3.559 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01042/0.572, allocations: 11.13 MB / 0.4956 GB, free: 7.727 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.5721, allocations: 7.922 kB / 0.4956 GB, free: 7.719 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004953/0.577, allocations: 3.141 MB / 0.4987 GB, free: 4.488 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008883/0.5779, allocations: 447.5 kB / 0.4991 GB, free: 4.031 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002557/0.5782, allocations: 35.98 kB / 0.4992 GB, free: 3.996 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008597/0.5791, allocations: 59.95 kB / 0.4992 GB, free: 3.938 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002531/0.5793, allocations: 105.2 kB / 0.4993 GB, free: 3.836 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.367e-05/0.5794, allocations: 40 kB / 0.4994 GB, free: 3.797 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001983/0.5814, allocations: 1.315 MB / 0.5007 GB, free: 2.492 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5814, allocations: 0 / 0.5007 GB, free: 2.492 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002219/0.5837, allocations: 0.5781 MB / 0.5012 GB, free: 1.914 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.0011/0.5848, allocations: 486 kB / 0.5017 GB, free: 1.43 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003401/0.5882, allocations: 2.172 MB / 0.5038 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5882, allocations: 0 / 0.5038 GB, free: 15.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002444/0.5907, allocations: 1.59 MB / 0.5054 GB, free: 13.55 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002668/0.5933, allocations: 0.5406 MB / 0.5059 GB, free: 13 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.6034, allocations: 5.881 MB / 0.5116 GB, free: 7.074 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002081/0.6055, allocations: 2.348 MB / 0.5139 GB, free: 4.691 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001586/0.6071, allocations: 413 kB / 0.5143 GB, free: 4.285 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003889/0.6075, allocations: 135.4 kB / 0.5144 GB, free: 4.156 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.6075, allocations: 0 / 0.5144 GB, free: 4.156 MB / 446.1 MB Notification: Performance of Templates: time 0.05098/0.6585, allocations: 30.52 MB / 0.5442 GB, free: 5.578 MB / 478.1 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","/var/lib/jenkins/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