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.001042/0.001042, allocations: 199.8 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 226.6 MB / 244.3 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007717/0.0007718, allocations: 108.7 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002454/0.0002457, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2206, allocations: 51.31 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor): time 0.006736/0.2274, allocations: 8.395 MB / 415.9 MB, free: 19.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005833/0.2333, allocations: 3.392 MB / 419.3 MB, free: 16.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001228/0.2346, allocations: 47.75 kB / 419.3 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00152/0.2361, allocations: 0.6062 MB / 420 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001732/0.2379, allocations: 0.7227 MB / 420.7 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009405/0.2388, allocations: 339.4 kB / 421 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002127/0.241, allocations: 2.468 MB / 423.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001331/0.2423, allocations: 1.26 MB / 424.7 MB, free: 10.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001271/0.2436, allocations: 0.8443 MB / 425.6 MB, free: 9.688 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001106/0.2447, allocations: 1.148 MB / 426.7 MB, free: 8.535 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001985/0.2449, allocations: 120 kB / 426.8 MB, free: 8.418 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006151/0.2455, allocations: 239.8 kB / 427.1 MB, free: 8.184 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004447/0.246, allocations: 0.6113 MB / 427.7 MB, free: 7.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003974/0.2464, allocations: 460.5 kB / 428.1 MB, free: 7.113 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001824/0.2482, allocations: 3 MB / 431.1 MB, free: 4.105 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2482, allocations: 0 / 431.1 MB, free: 4.105 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2482, allocations: 0 / 431.1 MB, free: 4.105 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.32e-05/0.2483, allocations: 0 / 431.1 MB, free: 4.105 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.004078/0.2524, allocations: 2.309 MB / 433.4 MB, free: 1.738 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/0.2524, allocations: 12.03 kB / 433.5 MB, free: 1.727 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008478/0.2533, allocations: 277 kB / 433.7 MB, free: 1.453 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002067/0.2554, allocations: 1.303 MB / 435 MB, free: 96 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.2555, allocations: 147.8 kB / 435.2 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003221/0.2559, allocations: 183.9 kB / 435.4 MB, free: 15.77 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004648/0.2605, allocations: 2.42 MB / 437.8 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.254e-05/0.2606, allocations: 11.94 kB / 437.8 MB, free: 13.3 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002334/0.2608, allocations: 79.98 kB / 437.9 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001359/0.261, allocations: 95.67 kB / 438 MB, free: 13.13 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004564/0.2656, allocations: 1.974 MB / 439.9 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01247/0.2781, allocations: 7.433 MB / 447.4 MB, free: 3.527 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001903/0.28, allocations: 1.339 MB / 448.7 MB, free: 2.113 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00155/0.2816, allocations: 0.8949 MB / 449.6 MB, free: 1.223 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002502/0.2819, allocations: 126 kB / 449.7 MB, free: 1.082 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001109/0.283, allocations: 0.6789 MB / 450.4 MB, free: 380 kB / 314.7 MB Notification: Performance of pre-optimization done (n=99): time 3.116e-06/0.283, allocations: 0 / 450.4 MB, free: 380 kB / 314.7 MB Notification: Performance of matching and sorting (n=121): time 0.01618/0.2992, allocations: 7.403 MB / 457.8 MB, free: 8.781 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.2993, allocations: 167.2 kB / 458 MB, free: 8.582 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002534/0.3019, allocations: 1.415 MB / 459.4 MB, free: 7.148 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002151/0.3021, allocations: 53.69 kB / 459.4 MB, free: 7.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009535/0.3031, allocations: 0.9405 MB / 460.4 MB, free: 6.137 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004372/0.3035, allocations: 417.9 kB / 460.8 MB, free: 5.723 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.208e-05/0.3036, allocations: 36 kB / 460.8 MB, free: 5.688 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.3038, allocations: 353.9 kB / 461.2 MB, free: 5.336 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.3049, allocations: 0.6325 MB / 461.8 MB, free: 4.703 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001355/0.3063, allocations: 0.9936 MB / 462.8 MB, free: 3.562 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001248/0.3075, allocations: 0.7872 MB / 463.6 MB, free: 2.777 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.285e-06/0.3076, allocations: 4 kB / 463.6 MB, free: 2.773 MB / 330.7 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.00426/0.3118, allocations: 2.344 MB / 465.9 MB, free: 396 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.188e-05/0.3119, allocations: 8 kB / 465.9 MB, free: 388 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/0.3119, allocations: 15.94 kB / 465.9 MB, free: 372 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.3131, allocations: 492.2 kB / 466.4 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.3143, allocations: 295.5 kB / 466.7 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006265/0.3205, allocations: 6.589 MB / 473.3 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.3218, allocations: 104 kB / 473.4 MB, free: 8.488 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.882e-05/0.3219, allocations: 56 kB / 473.5 MB, free: 8.434 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.001229/0.3232, allocations: 0.6427 MB / 474.1 MB, free: 7.785 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002863/0.3234, allocations: 154.1 kB / 474.3 MB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003551/0.327, allocations: 2.143 MB / 476.4 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/0.327, allocations: 12 kB / 476.4 MB, free: 5.438 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.456e-06/0.327, allocations: 8 kB / 476.4 MB, free: 5.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.553e-05/0.3271, allocations: 11.92 kB / 476.4 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006911/0.334, allocations: 4.463 MB / 480.9 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.235e-06/0.334, allocations: 4 kB / 480.9 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007527/0.3348, allocations: 192.1 kB / 481.1 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00132/0.3361, allocations: 0.5348 MB / 481.6 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.111e-05/0.3362, allocations: 31.98 kB / 481.7 MB, free: 48 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007619/0.3438, allocations: 8.021 MB / 489.7 MB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.3439, allocations: 3.938 kB / 489.7 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00475/0.3486, allocations: 3.07 MB / 492.7 MB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008287/0.3495, allocations: 379 kB / 493.1 MB, free: 3.941 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001904/0.3497, allocations: 35.98 kB / 493.2 MB, free: 3.906 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007556/0.3504, allocations: 71.94 kB / 493.2 MB, free: 3.836 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002298/0.3507, allocations: 100.8 kB / 493.3 MB, free: 3.734 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.192e-05/0.3507, allocations: 35.98 kB / 493.4 MB, free: 3.699 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001451/0.3522, allocations: 0.9757 MB / 494.3 MB, free: 2.723 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3522, allocations: 4 kB / 494.3 MB, free: 2.719 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001625/0.3538, allocations: 455.9 kB / 494.8 MB, free: 2.273 MB / 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.00106/0.3549, allocations: 453.7 kB / 495.2 MB, free: 1.957 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00374/0.3587, allocations: 2.252 MB / 497.5 MB, free: 15.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.3587, allocations: 12 kB / 497.5 MB, free: 15.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002345/0.3611, allocations: 1.518 MB / 499 MB, free: 14.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002253/0.3633, allocations: 404.3 kB / 499.4 MB, free: 13.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007524/0.3709, allocations: 5.11 MB / 0.4927 GB, free: 8.457 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/0.3723, allocations: 1.692 MB / 0.4943 GB, free: 6.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000464/0.3728, allocations: 115.4 kB / 0.4944 GB, free: 6.617 MB / 378.7 MB Notification: Performance of SimCode: time 8.52e-07/0.3728, allocations: 0 / 0.4944 GB, free: 6.617 MB / 378.7 MB Notification: Performance of Templates: time 0.2186/0.5914, allocations: 73.25 MB / 0.566 GB, free: 31.51 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