Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|mass.s|mass.v|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=400000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|mass.s|mass.v|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001341/0.001341, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 52.36 kB / 300.6 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09618/0.09736, allocations: 49.44 MB / 350.1 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor): time 0.01123/0.1086, allocations: 9.466 MB / 359.5 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006349/0.115, allocations: 3.459 MB / 363 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00126/0.1163, allocations: 47.81 kB / 363 MB, free: 7.395 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001759/0.1181, allocations: 0.7223 MB / 363.8 MB, free: 6.668 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00213/0.1203, allocations: 0.7999 MB / 364.6 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001035/0.1213, allocations: 473.7 kB / 365 MB, free: 5.402 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002292/0.1236, allocations: 2.396 MB / 367.4 MB, free: 2.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001821/0.1254, allocations: 1.774 MB / 369.2 MB, free: 1.176 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001297/0.1267, allocations: 1.098 MB / 370.3 MB, free: 76 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1579/0.2847, allocations: 1.378 MB / 371.7 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007953/0.2855, allocations: 278.3 kB / 371.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001175/0.2867, allocations: 413.2 kB / 372.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008673/0.2876, allocations: 0.8026 MB / 373.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001342/0.289, allocations: 1.278 MB / 374.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004094/0.2931, allocations: 3.691 MB / 378.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.2931, allocations: 0 / 378.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.2931, allocations: 1.156 kB / 378.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001082/0.2932, allocations: 0.8438 kB / 378.1 MB, free: 11.87 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.006483/0.2997, allocations: 2.665 MB / 380.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.2998, allocations: 13 kB / 380.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008546/0.3006, allocations: 268.1 kB / 381 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002093/0.3027, allocations: 1.341 MB / 382.4 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.907e-05/0.3028, allocations: 146.4 kB / 382.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000283/0.3031, allocations: 190.8 kB / 382.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004074/0.3072, allocations: 2.441 MB / 385.2 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.135e-05/0.3073, allocations: 8.734 kB / 385.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001852/0.3075, allocations: 76.12 kB / 385.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001222/0.3076, allocations: 100.5 kB / 385.3 MB, free: 8.781 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003346/0.311, allocations: 1.985 MB / 387.3 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01005/0.321, allocations: 7.404 MB / 394.7 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001524/0.3226, allocations: 1.345 MB / 396.1 MB, free: 2.023 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001347/0.3239, allocations: 0.8885 MB / 397 MB, free: 1.621 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002471/0.3242, allocations: 126.6 kB / 397.1 MB, free: 1.512 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008124/0.325, allocations: 0.6795 MB / 397.8 MB, free: 1.086 MB / 302.1 MB Notification: Performance of pre-optimization done (n=99): time 2.464e-06/0.325, allocations: 0 / 397.8 MB, free: 1.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=121): time 0.01554/0.3406, allocations: 7.323 MB / 405.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001184/0.3407, allocations: 171.2 kB / 405.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0024/0.3431, allocations: 1.415 MB / 406.7 MB, free: 9.684 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001254/0.3433, allocations: 45.7 kB / 406.7 MB, free: 9.633 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008519/0.3441, allocations: 0.9355 MB / 407.7 MB, free: 8.688 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003718/0.3445, allocations: 431.5 kB / 408.1 MB, free: 8.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003997/0.3449, allocations: 243.5 kB / 408.3 MB, free: 8.023 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.3451, allocations: 356.8 kB / 408.7 MB, free: 7.672 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001039/0.3461, allocations: 0.6403 MB / 409.3 MB, free: 7.031 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001269/0.3474, allocations: 0.9992 MB / 410.3 MB, free: 5.891 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002345/0.3498, allocations: 1.709 MB / 412 MB, free: 4.086 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.3498, allocations: 4 kB / 412 MB, free: 4.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.003781/0.3536, allocations: 2.338 MB / 414.4 MB, free: 1.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.823e-05/0.3536, allocations: 8 kB / 414.4 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/0.3536, allocations: 15.98 kB / 414.4 MB, free: 1.746 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001793/0.3554, allocations: 0.4887 MB / 414.9 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00111/0.3566, allocations: 298.8 kB / 415.2 MB, free: 0.9727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007087/0.3637, allocations: 7.183 MB / 422.3 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.3651, allocations: 100 kB / 422.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/0.3652, allocations: 59.98 kB / 422.5 MB, free: 9.25 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (148): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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 {(2,12,100.0%), (1,6,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00147/0.3667, allocations: 0.6385 MB / 423.1 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004572/0.3672, allocations: 150.1 kB / 423.3 MB, free: 8.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003931/0.3711, allocations: 2.151 MB / 425.4 MB, free: 6.297 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.3711, allocations: 15.98 kB / 425.4 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.898e-06/0.3711, allocations: 4 kB / 425.4 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.347e-05/0.3712, allocations: 7.969 kB / 425.5 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00827/0.3794, allocations: 4.466 MB / 429.9 MB, free: 1.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.3795, allocations: 3.984 kB / 429.9 MB, free: 1.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008018/0.3803, allocations: 186.7 kB / 430.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001406/0.3817, allocations: 0.5418 MB / 430.7 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.3818, allocations: 43.95 kB / 430.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008155/0.39, allocations: 8.738 MB / 439.4 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.39, allocations: 6.719 kB / 439.4 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004985/0.395, allocations: 3.087 MB / 442.5 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008671/0.3959, allocations: 363.1 kB / 442.9 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004223/0.3963, allocations: 35.98 kB / 442.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001033/0.3974, allocations: 75.92 kB / 443 MB, free: 4.074 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002958/0.3977, allocations: 92.38 kB / 443.1 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.793e-05/0.3978, allocations: 39.98 kB / 443.1 MB, free: 3.945 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001763/0.3996, allocations: 0.9714 MB / 444.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3996, allocations: 0 / 444.1 MB, free: 2.973 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001837/0.4014, allocations: 460 kB / 444.5 MB, free: 2.523 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (104): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,3,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00114/0.4026, allocations: 0.4949 MB / 445 MB, free: 2.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004997/0.4076, allocations: 2.68 MB / 447.7 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.4076, allocations: 0.6875 kB / 447.7 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002341/0.4099, allocations: 1.522 MB / 449.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002531/0.4125, allocations: 411.6 kB / 449.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007213/0.4197, allocations: 4.282 MB / 453.9 MB, free: 9.199 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001663/0.4214, allocations: 1.698 MB / 455.6 MB, free: 7.469 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001142/0.4226, allocations: 317 kB / 455.9 MB, free: 7.152 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003706/0.423, allocations: 111.4 kB / 456 MB, free: 7.047 MB / 366.1 MB Notification: Performance of SimCode: time 9.01e-07/0.423, allocations: 4 kB / 456 MB, free: 7.043 MB / 366.1 MB Notification: Performance of Templates: time 0.0419/0.4649, allocations: 24.66 MB / 480.7 MB, free: 14.69 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Conveyor/IMC_Conveyor.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches