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.001587/0.001587, allocations: 103.9 kB / 18.39 MB, free: 4.641 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.001714/0.001714, allocations: 190.5 kB / 19.33 MB, free: 3.715 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.6/1.6, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001414/0.001414, allocations: 51.92 kB / 329.2 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09587/0.09729, allocations: 46.62 MB / 375.8 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.205/0.3024, allocations: 13.37 MB / 389.2 MB, free: 5.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01049/0.3129, allocations: 4.759 MB / 394 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00334/0.3163, allocations: 68.56 kB / 394 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003933/0.3203, allocations: 1.102 MB / 395.1 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005832/0.3261, allocations: 1.363 MB / 396.5 MB, free: 1.062 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003452/0.3296, allocations: 0.9741 MB / 397.5 MB, free: 460 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.007509/0.3371, allocations: 4.062 MB / 401.5 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004884/0.3421, allocations: 3.203 MB / 404.7 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003837/0.3459, allocations: 1.923 MB / 406.7 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005473/0.3514, allocations: 2.164 MB / 408.8 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002094/0.3536, allocations: 0.5076 MB / 409.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005243/0.3588, allocations: 0.7493 MB / 410.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002921/0.3618, allocations: 1.144 MB / 411.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007209/0.369, allocations: 2.146 MB / 413.4 MB, free: 8.477 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01478/0.3839, allocations: 6.779 MB / 420.2 MB, free: 3.273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.585e-06/0.3839, allocations: 0 / 420.2 MB, free: 3.273 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3839, allocations: 0 / 420.2 MB, free: 3.273 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002427/0.3842, allocations: 0 / 420.2 MB, free: 3.273 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.01967/0.4039, allocations: 4.5 MB / 424.7 MB, free: 14.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.989e-05/0.4039, allocations: 12.03 kB / 424.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005544/0.4095, allocations: 0.8162 MB / 425.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005127/0.4147, allocations: 2.326 MB / 427.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002624/0.4149, allocations: 242.4 kB / 428 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001122/0.4161, allocations: 319.9 kB / 428.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01023/0.4263, allocations: 4.284 MB / 432.6 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000102/0.4265, allocations: 4 kB / 432.6 MB, free: 6.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006372/0.4271, allocations: 128 kB / 432.8 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001787/0.4273, allocations: 154.4 kB / 432.9 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007337/0.4346, allocations: 3.621 MB / 436.5 MB, free: 2.691 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02406/0.4587, allocations: 13.25 MB / 449.8 MB, free: 5.105 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007235/0.466, allocations: 6.962 MB / 456.8 MB, free: 13.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002248/0.4683, allocations: 1.363 MB / 458.1 MB, free: 11.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007126/0.4754, allocations: 3.82 MB / 461.9 MB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001349/0.4768, allocations: 0.8493 MB / 462.8 MB, free: 7.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.386e-06/0.4768, allocations: 0 / 462.8 MB, free: 7.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01268/0.4895, allocations: 6.497 MB / 469.3 MB, free: 376 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.4897, allocations: 226.9 kB / 469.5 MB, free: 100 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003165/0.4928, allocations: 1.914 MB / 471.4 MB, free: 14.18 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001428/0.493, allocations: 57.69 kB / 471.5 MB, free: 14.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001428/0.4944, allocations: 1.462 MB / 472.9 MB, free: 12.64 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004592/0.4949, allocations: 493 kB / 473.4 MB, free: 12.15 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000508/0.4954, allocations: 311.3 kB / 473.7 MB, free: 11.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4955, allocations: 305.1 kB / 474 MB, free: 11.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001122/0.4967, allocations: 0.6637 MB / 474.7 MB, free: 10.88 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001491/0.4982, allocations: 1.214 MB / 475.9 MB, free: 9.441 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00268/0.5009, allocations: 1.936 MB / 477.8 MB, free: 7.297 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.592e-05/0.5009, allocations: 4 kB / 477.8 MB, free: 7.293 MB / 398.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.00425/0.5051, allocations: 2.424 MB / 480.3 MB, free: 4.828 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.5052, allocations: 12 kB / 480.3 MB, free: 4.816 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.073e-05/0.5052, allocations: 16 kB / 480.3 MB, free: 4.801 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007874/0.506, allocations: 287.3 kB / 480.6 MB, free: 4.508 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001387/0.5074, allocations: 379.4 kB / 480.9 MB, free: 4.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006308/0.5137, allocations: 6.383 MB / 487.3 MB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/0.5154, allocations: 91.95 kB / 487.4 MB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002157/0.5157, allocations: 71.98 kB / 487.5 MB, free: 13.18 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.00209/0.5178, allocations: 1.039 MB / 488.5 MB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004872/0.5183, allocations: 197.6 kB / 488.7 MB, free: 11.94 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003911/0.5222, allocations: 2.253 MB / 491 MB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.5222, allocations: 12 kB / 491 MB, free: 9.605 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/0.5222, allocations: 8 kB / 491 MB, free: 9.598 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.5223, allocations: 11.97 kB / 491 MB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008259/0.5305, allocations: 5.077 MB / 496.1 MB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/0.5305, allocations: 3.984 kB / 496.1 MB, free: 4.379 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007476/0.5313, allocations: 187.8 kB / 496.3 MB, free: 4.195 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.5324, allocations: 464.3 kB / 496.7 MB, free: 3.727 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-05/0.5326, allocations: 39.92 kB / 496.8 MB, free: 3.688 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/0.5432, allocations: 11.14 MB / 0.496 GB, free: 7.844 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.5432, allocations: 4.031 kB / 0.496 GB, free: 7.84 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005296/0.5486, allocations: 3.128 MB / 0.499 GB, free: 4.621 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001224/0.5498, allocations: 434.4 kB / 0.4995 GB, free: 4.176 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006057/0.5504, allocations: 36 kB / 0.4995 GB, free: 4.141 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001255/0.5517, allocations: 63.95 kB / 0.4996 GB, free: 4.078 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002857/0.552, allocations: 101.2 kB / 0.4997 GB, free: 3.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.591e-05/0.5521, allocations: 39.98 kB / 0.4997 GB, free: 3.941 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002585/0.5547, allocations: 1.315 MB / 0.501 GB, free: 2.637 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5547, allocations: 0 / 0.501 GB, free: 2.637 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00273/0.5574, allocations: 0.582 MB / 0.5015 GB, free: 2.055 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.001313/0.5587, allocations: 482.7 kB / 0.502 GB, free: 1.57 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00371/0.5625, allocations: 2.165 MB / 0.5041 GB, free: 15.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.601e-06/0.5625, allocations: 4.062 kB / 0.5041 GB, free: 15.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002589/0.5651, allocations: 1.598 MB / 0.5057 GB, free: 13.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002902/0.568, allocations: 0.5367 MB / 0.5062 GB, free: 13.14 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01101/0.579, allocations: 5.761 MB / 0.5118 GB, free: 7.336 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002495/0.5816, allocations: 2.301 MB / 0.5141 GB, free: 5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005956/0.5822, allocations: 147.4 kB / 0.5142 GB, free: 4.859 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5822, allocations: 0 / 0.5142 GB, free: 4.859 MB / 446.1 MB Notification: Performance of Templates: time 0.2958/0.878, allocations: 114.3 MB / 0.6258 GB, free: 95.16 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/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