Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001575/0.001575, allocations: 175.1 kB / 16.72 MB, free: 5.055 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.514/1.514, allocations: 205.4 MB / 222.9 MB, free: 8.945 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.000877/0.0008772, allocations: 98.33 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000325/0.000325, allocations: 12 kB / 327.5 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2547, allocations: 47.56 MB / 375.1 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.01044/0.2652, allocations: 11.8 MB / 386.9 MB, free: 36.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008119/0.2734, allocations: 4.409 MB / 391.3 MB, free: 32.47 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002392/0.2758, allocations: 67.69 kB / 391.4 MB, free: 32.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00274/0.2786, allocations: 0.8315 MB / 392.2 MB, free: 31.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00389/0.2825, allocations: 1.139 MB / 393.3 MB, free: 30.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00211/0.2846, allocations: 0.694 MB / 394 MB, free: 29.74 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004671/0.2893, allocations: 4.09 MB / 398.1 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002535/0.2918, allocations: 2.64 MB / 400.8 MB, free: 22.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001742/0.2936, allocations: 1.311 MB / 402.1 MB, free: 21.61 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001686/0.2953, allocations: 1.677 MB / 403.8 MB, free: 19.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003476/0.2956, allocations: 208 kB / 404 MB, free: 19.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001051/0.2967, allocations: 451.7 kB / 404.4 MB, free: 19.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000476/0.2972, allocations: 0.7706 MB / 405.2 MB, free: 18.51 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001555/0.2988, allocations: 1.705 MB / 406.9 MB, free: 16.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00393/0.3027, allocations: 5.547 MB / 412.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.3027, allocations: 0 / 412.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3027, allocations: 3.938 kB / 412.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001732/0.3029, allocations: 0 / 412.4 MB, free: 11.23 MB / 298.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.008456/0.3114, allocations: 3.786 MB / 416.2 MB, free: 7.367 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.3114, allocations: 8.031 kB / 416.2 MB, free: 7.359 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003938/0.3154, allocations: 0.8318 MB / 417 MB, free: 6.523 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003495/0.3189, allocations: 2.256 MB / 419.3 MB, free: 4.211 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.3191, allocations: 234.4 kB / 419.5 MB, free: 3.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004943/0.3196, allocations: 327.8 kB / 419.9 MB, free: 3.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006962/0.3265, allocations: 4.261 MB / 424.1 MB, free: 15.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.215e-05/0.3267, allocations: 0 / 424.1 MB, free: 15.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003086/0.327, allocations: 132 kB / 424.2 MB, free: 15.22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001658/0.3271, allocations: 154.4 kB / 424.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007128/0.3343, allocations: 3.601 MB / 428 MB, free: 11.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02213/0.3564, allocations: 13.5 MB / 441.5 MB, free: 13.62 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006543/0.363, allocations: 6.956 MB / 448.4 MB, free: 5.762 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002295/0.3654, allocations: 1.386 MB / 449.8 MB, free: 4.379 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006816/0.3722, allocations: 3.836 MB / 453.7 MB, free: 460 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001361/0.3736, allocations: 0.8571 MB / 454.5 MB, free: 15.56 MB / 346.7 MB Notification: Performance of pre-optimization done (n=131): time 3.526e-06/0.3736, allocations: 0 / 454.5 MB, free: 15.56 MB / 346.7 MB Notification: Performance of matching and sorting (n=139): time 0.01252/0.3861, allocations: 6.501 MB / 461 MB, free: 8.848 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.3863, allocations: 226.9 kB / 461.3 MB, free: 8.578 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002694/0.389, allocations: 1.899 MB / 463.1 MB, free: 6.68 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001253/0.3891, allocations: 53.7 kB / 463.2 MB, free: 6.621 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00122/0.3904, allocations: 1.47 MB / 464.7 MB, free: 5.133 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004028/0.3908, allocations: 485 kB / 465.1 MB, free: 4.652 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.011e-05/0.3909, allocations: 39.94 kB / 465.2 MB, free: 4.613 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.391, allocations: 377.8 kB / 465.6 MB, free: 4.238 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.3921, allocations: 0.6559 MB / 466.2 MB, free: 3.586 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001462/0.3936, allocations: 1.21 MB / 467.4 MB, free: 2.145 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002635/0.3963, allocations: 1.928 MB / 469.3 MB, free: 12 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.3963, allocations: 4 kB / 469.4 MB, free: 8 kB / 346.7 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004046/0.4003, allocations: 2.42 MB / 471.8 MB, free: 13.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.751e-05/0.4004, allocations: 15.98 kB / 471.8 MB, free: 13.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.076e-05/0.4004, allocations: 12 kB / 471.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007194/0.4011, allocations: 289.8 kB / 472.1 MB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/0.4025, allocations: 379.4 kB / 472.5 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005586/0.4081, allocations: 5.853 MB / 478.3 MB, free: 6.605 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001467/0.4096, allocations: 103.9 kB / 478.4 MB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.4098, allocations: 71.98 kB / 478.5 MB, free: 6.434 MB / 362.7 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 ($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 (196): * Single equations (assignments): 192 * 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%) 4,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001892/0.4117, allocations: 1.036 MB / 479.5 MB, free: 5.387 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003157/0.412, allocations: 201.5 kB / 479.7 MB, free: 5.188 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003882/0.4159, allocations: 2.242 MB / 482 MB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.4159, allocations: 15.98 kB / 482 MB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.077e-05/0.4159, allocations: 8.188 kB / 482 MB, free: 2.852 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.4159, allocations: 7.969 kB / 482 MB, free: 2.844 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00787/0.4238, allocations: 5.098 MB / 487.1 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.4239, allocations: 4 kB / 487.1 MB, free: 13.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007684/0.4246, allocations: 179.9 kB / 487.3 MB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00122/0.4259, allocations: 459.1 kB / 487.7 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.426, allocations: 43.97 kB / 487.8 MB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00979/0.4358, allocations: 10.19 MB / 497.9 MB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.095e-06/0.4358, allocations: 0 / 497.9 MB, free: 2.086 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005489/0.4413, allocations: 3.134 MB / 0.4893 GB, free: 14.87 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001077/0.4424, allocations: 434.5 kB / 0.4897 GB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000268/0.4427, allocations: 32 kB / 0.4898 GB, free: 14.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008239/0.4436, allocations: 71.95 kB / 0.4898 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002846/0.4439, allocations: 97.16 kB / 0.4899 GB, free: 14.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.532e-05/0.4439, allocations: 44.11 kB / 0.49 GB, free: 14.18 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002105/0.4461, allocations: 1.299 MB / 0.4912 GB, free: 12.89 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4461, allocations: 0 / 0.4912 GB, free: 12.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00225/0.4483, allocations: 0.5821 MB / 0.4918 GB, free: 12.31 MB / 394.7 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 (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%) 13,(1,100.0%) 3,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001086/0.4494, allocations: 468.1 kB / 0.4923 GB, free: 11.86 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003676/0.4531, allocations: 2.175 MB / 0.4944 GB, free: 9.621 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/0.4532, allocations: 0 / 0.4944 GB, free: 9.621 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002481/0.4556, allocations: 1.571 MB / 0.4959 GB, free: 7.988 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00285/0.4585, allocations: 0.5302 MB / 0.4964 GB, free: 7.461 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01147/0.47, allocations: 6.994 MB / 0.5033 GB, free: 424 kB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1608/0.6308, allocations: 2.298 MB / 0.5055 GB, free: 119.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005748/0.6314, allocations: 142.9 kB / 0.5056 GB, free: 119.3 MB / 394.7 MB Notification: Performance of SimCode: time 6.82e-07/0.6314, allocations: 0 / 0.5056 GB, free: 119.3 MB / 394.7 MB Notification: Performance of Templates: time 0.09573/0.7272, allocations: 113.5 MB / 0.6165 GB, free: 16.42 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches