Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001364/0.001364, allocations: 201.9 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 226.5 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007754/0.0007754, allocations: 101 kB / 296.8 MB, free: 6.895 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002119/0.0002119, allocations: 8 kB / 356.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1951/0.1953, allocations: 51.29 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor): time 0.006413/0.2018, allocations: 8.404 MB / 416.5 MB, free: 19.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00435/0.2062, allocations: 3.39 MB / 419.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006006/0.2068, allocations: 43.81 kB / 419.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00109/0.2079, allocations: 0.614 MB / 420.5 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001311/0.2092, allocations: 0.7384 MB / 421.2 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007076/0.2099, allocations: 335.4 kB / 421.6 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001598/0.2116, allocations: 2.502 MB / 424.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001203/0.2128, allocations: 1.461 MB / 425.5 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007915/0.2136, allocations: 0.8404 MB / 426.4 MB, free: 9.309 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009538/0.2145, allocations: 1.148 MB / 427.5 MB, free: 8.156 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001795/0.2147, allocations: 124 kB / 427.6 MB, free: 8.035 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004947/0.2152, allocations: 267.8 kB / 427.9 MB, free: 7.773 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004197/0.2157, allocations: 0.623 MB / 428.5 MB, free: 7.148 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006795/0.2163, allocations: 1.047 MB / 429.6 MB, free: 6.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00163/0.218, allocations: 3.004 MB / 432.6 MB, free: 3.078 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.218, allocations: 0 / 432.6 MB, free: 3.078 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.218, allocations: 0 / 432.6 MB, free: 3.078 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.286e-05/0.218, allocations: 0 / 432.6 MB, free: 3.078 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: 490 * Number of variables: 490 Notification: Performance of Generate backend data structure: time 0.003371/0.2214, allocations: 2.278 MB / 434.9 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.314e-05/0.2215, allocations: 8.031 kB / 434.9 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006068/0.2221, allocations: 281.9 kB / 435.1 MB, free: 468 kB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001848/0.2239, allocations: 1.354 MB / 436.5 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.92e-05/0.224, allocations: 139.7 kB / 436.6 MB, free: 14.91 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002431/0.2243, allocations: 187.9 kB / 436.8 MB, free: 14.72 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00361/0.2279, allocations: 2.424 MB / 439.2 MB, free: 12.27 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.057e-05/0.228, allocations: 7.984 kB / 439.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001642/0.2281, allocations: 80 kB / 439.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.018e-05/0.2282, allocations: 95.67 kB / 439.4 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003132/0.2314, allocations: 1.978 MB / 441.4 MB, free: 10.11 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009991/0.2414, allocations: 7.44 MB / 448.8 MB, free: 2.473 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001705/0.2431, allocations: 1.34 MB / 450.2 MB, free: 1.062 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001409/0.2446, allocations: 0.901 MB / 451.1 MB, free: 168 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002292/0.2448, allocations: 118.1 kB / 451.2 MB, free: 32 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009939/0.2458, allocations: 0.6827 MB / 451.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of pre-optimization done (n=99): time 2.625e-06/0.2458, allocations: 4 kB / 451.9 MB, free: 15.31 MB / 330.7 MB Notification: Performance of matching and sorting (n=121): time 0.01437/0.2602, allocations: 7.392 MB / 459.3 MB, free: 7.734 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.032e-05/0.2603, allocations: 171.2 kB / 459.4 MB, free: 7.531 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001828/0.2621, allocations: 1.415 MB / 460.9 MB, free: 6.098 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.998e-05/0.2622, allocations: 49.7 kB / 460.9 MB, free: 6.043 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006922/0.2629, allocations: 0.9442 MB / 461.8 MB, free: 5.086 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002956/0.2632, allocations: 421.9 kB / 462.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.831e-05/0.2633, allocations: 32 kB / 462.3 MB, free: 4.637 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001229/0.2635, allocations: 353.9 kB / 462.6 MB, free: 4.285 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009787/0.2644, allocations: 0.6403 MB / 463.3 MB, free: 3.645 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.2657, allocations: 0.9975 MB / 464.3 MB, free: 2.504 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002238/0.2679, allocations: 1.699 MB / 466 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.501e-06/0.2679, allocations: 4 kB / 466 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.00371/0.2716, allocations: 2.332 MB / 468.3 MB, free: 14.3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.2717, allocations: 12.03 kB / 468.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.2717, allocations: 12 kB / 468.3 MB, free: 14.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.2728, allocations: 495.9 kB / 468.8 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001047/0.2739, allocations: 303.5 kB / 469.1 MB, free: 13.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00612/0.28, allocations: 6.588 MB / 475.7 MB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/0.2813, allocations: 91.83 kB / 475.8 MB, free: 6.395 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.2814, allocations: 59.98 kB / 475.8 MB, free: 6.336 MB / 346.7 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 ($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 (148): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001262/0.2827, allocations: 0.6386 MB / 476.5 MB, free: 5.691 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000231/0.2829, allocations: 150.1 kB / 476.6 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00344/0.2864, allocations: 2.151 MB / 478.8 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.104e-05/0.2864, allocations: 16 kB / 478.8 MB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.2864, allocations: 4 kB / 478.8 MB, free: 3.332 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.2864, allocations: 3.984 kB / 478.8 MB, free: 3.328 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006833/0.2933, allocations: 4.475 MB / 483.3 MB, free: 14.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.2933, allocations: 4 kB / 483.3 MB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007667/0.2941, allocations: 191.7 kB / 483.5 MB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001333/0.2954, allocations: 0.5274 MB / 484 MB, free: 13.98 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.008e-05/0.2955, allocations: 35.98 kB / 484 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007347/0.3029, allocations: 8.037 MB / 492.1 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.3029, allocations: 4 kB / 492.1 MB, free: 5.379 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004804/0.3077, allocations: 3.078 MB / 495.2 MB, free: 2.215 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008154/0.3086, allocations: 375.1 kB / 495.5 MB, free: 1.828 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002057/0.3088, allocations: 31.98 kB / 495.6 MB, free: 1.797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007557/0.3096, allocations: 75.86 kB / 495.6 MB, free: 1.723 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/0.3098, allocations: 92.81 kB / 495.7 MB, free: 1.629 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.708e-05/0.3099, allocations: 39.98 kB / 495.8 MB, free: 1.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001356/0.3112, allocations: 0.9757 MB / 496.7 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3112, allocations: 0 / 496.7 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001451/0.3127, allocations: 459.9 kB / 497.2 MB, free: 168 kB / 362.7 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 6,(1,100.0%) 3,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001062/0.3138, allocations: 489.4 kB / 497.7 MB, free: 15.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003366/0.3171, allocations: 2.251 MB / 499.9 MB, free: 13.49 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.3172, allocations: 4.688 kB / 499.9 MB, free: 13.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002205/0.3194, allocations: 1.522 MB / 0.4897 GB, free: 11.89 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002471/0.3219, allocations: 396.4 kB / 0.4901 GB, free: 11.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006556/0.3284, allocations: 5.106 MB / 0.495 GB, free: 6.328 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00133/0.3298, allocations: 1.685 MB / 0.4967 GB, free: 4.609 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004566/0.3303, allocations: 123.4 kB / 0.4968 GB, free: 4.488 MB / 378.7 MB Notification: Performance of SimCode: time 7.42e-07/0.3303, allocations: 0 / 0.4968 GB, free: 4.488 MB / 378.7 MB Notification: Performance of Templates: time 0.2134/0.5437, allocations: 73.27 MB / 0.5684 GB, free: 30.2 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches