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.0007661/0.0007663, allocations: 92.2 kB / 17.31 MB, free: 6.023 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.0008/0.0008, allocations: 175.8 kB / 18.21 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.282/1.282, allocations: 223.3 MB / 242.3 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002353/0.0002353, allocations: 7.938 kB / 302.1 MB, free: 6.113 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07382/0.07408, allocations: 50.42 MB / 352.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor): time 0.008687/0.08279, allocations: 8.885 MB / 361.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005183/0.08799, allocations: 3.37 MB / 364.8 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008906/0.0889, allocations: 47.75 kB / 364.8 MB, free: 7.324 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001502/0.09042, allocations: 0.6413 MB / 365.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001811/0.09224, allocations: 0.7267 MB / 366.2 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009454/0.0932, allocations: 426.6 kB / 366.6 MB, free: 5.535 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002369/0.09558, allocations: 2.731 MB / 369.3 MB, free: 2.793 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001557/0.09715, allocations: 1.458 MB / 370.8 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000815/0.09797, allocations: 0.8557 MB / 371.6 MB, free: 440 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1409/0.2389, allocations: 1.185 MB / 372.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005863/0.2395, allocations: 124 kB / 372.9 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009517/0.2404, allocations: 265.2 kB / 373.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007331/0.2412, allocations: 0.6217 MB / 373.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001353/0.2425, allocations: 1.097 MB / 374.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002988/0.2455, allocations: 2.981 MB / 377.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.2456, allocations: 0.5938 kB / 377.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.2456, allocations: 0 / 377.9 MB, free: 11.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.852e-05/0.2457, allocations: 0.7812 kB / 377.9 MB, free: 11.07 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.004811/0.2505, allocations: 2.275 MB / 380.2 MB, free: 9.957 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.2505, allocations: 9.125 kB / 380.2 MB, free: 9.957 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006639/0.2512, allocations: 273.1 kB / 380.4 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001875/0.2531, allocations: 1.351 MB / 381.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.423e-05/0.2532, allocations: 141 kB / 381.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002828/0.2535, allocations: 190.6 kB / 382.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00369/0.2572, allocations: 2.443 MB / 384.6 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.419e-05/0.2572, allocations: 7.062 kB / 384.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001811/0.2574, allocations: 74.28 kB / 384.6 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-05/0.2575, allocations: 95.91 kB / 384.7 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003026/0.2606, allocations: 1.995 MB / 386.7 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008836/0.2694, allocations: 7.426 MB / 394.2 MB, free: 3.758 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001584/0.271, allocations: 1.354 MB / 395.5 MB, free: 2.895 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001381/0.2724, allocations: 0.8892 MB / 396.4 MB, free: 2.496 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001867/0.2726, allocations: 129.4 kB / 396.5 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008668/0.2735, allocations: 0.681 MB / 397.2 MB, free: 1.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=99): time 2.454e-06/0.2735, allocations: 0 / 397.2 MB, free: 1.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=121): time 0.01412/0.2876, allocations: 7.402 MB / 404.6 MB, free: 12.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/0.2877, allocations: 171.2 kB / 404.8 MB, free: 12.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001801/0.2895, allocations: 1.418 MB / 406.2 MB, free: 11.29 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.849e-05/0.2896, allocations: 49.7 kB / 406.2 MB, free: 11.24 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006517/0.2903, allocations: 0.9328 MB / 407.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003091/0.2906, allocations: 423.4 kB / 407.6 MB, free: 9.887 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/0.2908, allocations: 109.7 kB / 407.7 MB, free: 9.773 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.2909, allocations: 365.9 kB / 408.1 MB, free: 9.41 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009953/0.2919, allocations: 0.6364 MB / 408.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.2931, allocations: 1.005 MB / 409.7 MB, free: 7.629 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002292/0.2954, allocations: 1.715 MB / 411.4 MB, free: 5.816 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/0.2955, allocations: 7.656 kB / 411.4 MB, free: 5.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.003685/0.2991, allocations: 2.345 MB / 413.8 MB, free: 3.496 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.2992, allocations: 8 kB / 413.8 MB, free: 3.488 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.2992, allocations: 8 kB / 413.8 MB, free: 3.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001151/0.3004, allocations: 495.5 kB / 414.3 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.3015, allocations: 299 kB / 414.6 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006171/0.3076, allocations: 6.592 MB / 421.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009927/0.3086, allocations: 103.9 kB / 421.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.57e-05/0.3088, allocations: 51.98 kB / 421.3 MB, free: 11.59 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.0008973/0.3097, allocations: 0.6339 MB / 421.9 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002218/0.3099, allocations: 158.1 kB / 422.1 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003615/0.3135, allocations: 2.159 MB / 424.2 MB, free: 8.621 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.818e-06/0.3135, allocations: 12 kB / 424.3 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3136, allocations: 4 kB / 424.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.3136, allocations: 7.969 kB / 424.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006732/0.3203, allocations: 4.462 MB / 428.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/0.3203, allocations: 8.375 kB / 428.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008038/0.3211, allocations: 196.4 kB / 428.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001382/0.3225, allocations: 0.53 MB / 429.5 MB, free: 3.34 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.339e-05/0.3226, allocations: 35.98 kB / 429.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007186/0.3298, allocations: 8.028 MB / 437.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3298, allocations: 2.625 kB / 437.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004457/0.3343, allocations: 3.097 MB / 440.6 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005335/0.3349, allocations: 378.9 kB / 441 MB, free: 7.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002143/0.3351, allocations: 39.98 kB / 441 MB, free: 7.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008368/0.3359, allocations: 71.92 kB / 441.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.3361, allocations: 96.41 kB / 441.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.993e-05/0.3362, allocations: 39.98 kB / 441.2 MB, free: 6.992 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001266/0.3375, allocations: 0.9792 MB / 442.2 MB, free: 6.012 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3375, allocations: 0 / 442.2 MB, free: 6.012 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001356/0.3389, allocations: 448 kB / 442.7 MB, free: 5.574 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.34, allocations: 0.4981 MB / 443.2 MB, free: 5.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0032/0.3432, allocations: 2.245 MB / 445.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.3432, allocations: 5.938 kB / 445.4 MB, free: 2.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002177/0.3454, allocations: 1.527 MB / 446.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002344/0.3478, allocations: 406.2 kB / 447.3 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006607/0.3544, allocations: 5.314 MB / 452.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001323/0.3557, allocations: 1.689 MB / 454.3 MB, free: 9.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003673/0.3561, allocations: 115.4 kB / 454.4 MB, free: 9.797 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3561, allocations: 0 / 454.4 MB, free: 9.797 MB / 366.1 MB Notification: Performance of Templates: time 0.07043/0.4266, allocations: 73 MB / 0.5151 GB, free: 0.8477 MB / 430.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Conveyor/IMC_Conveyor.csv","/var/lib/jenkins1/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