Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001126/0.001126, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001164/0.001165, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001227, allocations: 61.66 kB / 307.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08897/0.09021, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor): time 0.01081/0.1011, allocations: 9.498 MB / 367.1 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006901/0.108, allocations: 3.634 MB / 370.7 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001729/0.1098, allocations: 51.75 kB / 370.8 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002292/0.1121, allocations: 0.7301 MB / 371.5 MB, free: 4 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1497/0.2619, allocations: 0.842 MB / 372.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001213/0.2631, allocations: 453.3 kB / 372.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003051/0.2662, allocations: 2.409 MB / 375.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001951/0.2681, allocations: 1.777 MB / 377 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001671/0.2698, allocations: 1.097 MB / 378.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001844/0.2717, allocations: 1.392 MB / 379.5 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005102/0.2722, allocations: 278.7 kB / 379.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001169/0.2734, allocations: 419.9 kB / 380.2 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008302/0.2742, allocations: 0.7993 MB / 380.9 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001652/0.2759, allocations: 1.284 MB / 382.2 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003883/0.2798, allocations: 3.705 MB / 385.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2798, allocations: 0 / 385.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2798, allocations: 0 / 385.9 MB, free: 7.105 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001043/0.2799, allocations: 0 / 385.9 MB, free: 7.105 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.005818/0.2857, allocations: 2.687 MB / 388.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.2858, allocations: 9.344 kB / 388.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003356/0.2861, allocations: 278 kB / 388.9 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008448/0.287, allocations: 286.4 kB / 389.2 MB, free: 5.164 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002012/0.289, allocations: 1.346 MB / 390.5 MB, free: 4.188 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.804e-05/0.2891, allocations: 149.2 kB / 390.7 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002698/0.2894, allocations: 190.7 kB / 390.9 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003627/0.293, allocations: 2.444 MB / 393.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.952e-05/0.2931, allocations: 2.75 kB / 393.3 MB, free: 2.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001699/0.2933, allocations: 80.48 kB / 393.4 MB, free: 2.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.732e-05/0.2934, allocations: 95.42 kB / 393.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003136/0.2965, allocations: 1.983 MB / 395.5 MB, free: 1.547 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01063/0.3072, allocations: 7.407 MB / 402.9 MB, free: 11.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001831/0.309, allocations: 1.358 MB / 404.2 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001474/0.3105, allocations: 0.8833 MB / 405.1 MB, free: 9.527 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002423/0.3108, allocations: 129.1 kB / 405.2 MB, free: 9.387 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001009/0.3118, allocations: 0.6866 MB / 405.9 MB, free: 8.672 MB / 318.1 MB Notification: Performance of pre-optimization done (n=99): time 2.655e-06/0.3118, allocations: 0 / 405.9 MB, free: 8.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=121): time 0.01612/0.3279, allocations: 7.343 MB / 413.3 MB, free: 1.152 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.579e-05/0.3281, allocations: 167.2 kB / 413.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002391/0.3305, allocations: 1.429 MB / 414.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001195/0.3306, allocations: 45.7 kB / 414.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008837/0.3315, allocations: 0.9392 MB / 415.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000438/0.3319, allocations: 425.1 kB / 416.3 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004359/0.3324, allocations: 243.5 kB / 416.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.3325, allocations: 369.9 kB / 416.9 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.3336, allocations: 0.6363 MB / 417.5 MB, free: 12.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001313/0.3349, allocations: 0.9975 MB / 418.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002506/0.3375, allocations: 1.709 MB / 420.2 MB, free: 9.871 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.3375, allocations: 4 kB / 420.2 MB, free: 9.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.004064/0.3416, allocations: 2.34 MB / 422.5 MB, free: 7.484 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.601e-05/0.3416, allocations: 12 kB / 422.6 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.3416, allocations: 8 kB / 422.6 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.3428, allocations: 0.4896 MB / 423.1 MB, free: 6.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001096/0.3439, allocations: 295.5 kB / 423.3 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006865/0.3508, allocations: 7.191 MB / 430.5 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001289/0.3521, allocations: 91.84 kB / 430.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001384/0.3523, allocations: 56 kB / 430.7 MB, free: 14.93 MB / 350.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.001143/0.3534, allocations: 0.6377 MB / 431.3 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003785/0.3538, allocations: 158 kB / 431.5 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003757/0.3576, allocations: 2.15 MB / 433.6 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.234e-05/0.3576, allocations: 12 kB / 433.6 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.3576, allocations: 4 kB / 433.6 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.453e-05/0.3576, allocations: 7.984 kB / 433.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007754/0.3654, allocations: 4.481 MB / 438.1 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.987e-06/0.3654, allocations: 7.938 kB / 438.1 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008126/0.3663, allocations: 191.7 kB / 438.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.3677, allocations: 0.5311 MB / 438.9 MB, free: 6.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/0.3678, allocations: 39.97 kB / 438.9 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008844/0.3767, allocations: 8.743 MB / 447.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.3767, allocations: 4.062 kB / 447.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005146/0.3819, allocations: 3.091 MB / 450.7 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008705/0.3827, allocations: 363.1 kB / 451.1 MB, free: 9.699 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004224/0.3832, allocations: 31.98 kB / 451.1 MB, free: 9.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009776/0.3842, allocations: 71.92 kB / 451.2 MB, free: 9.598 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002395/0.3844, allocations: 100.8 kB / 451.3 MB, free: 9.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.783e-05/0.3845, allocations: 35.98 kB / 451.3 MB, free: 9.461 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001602/0.3861, allocations: 0.9874 MB / 452.3 MB, free: 8.473 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3861, allocations: 0 / 452.3 MB, free: 8.473 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00177/0.3879, allocations: 448 kB / 452.7 MB, free: 8.035 MB / 366.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.006278/0.3942, allocations: 4.022 MB / 456.8 MB, free: 4.066 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004699/0.3989, allocations: 2.686 MB / 459.5 MB, free: 1.305 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.3989, allocations: 4 kB / 459.5 MB, free: 1.301 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002318/0.4013, allocations: 1.522 MB / 461 MB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002312/0.4036, allocations: 423.1 kB / 461.4 MB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02729/0.4309, allocations: 17.6 MB / 479 MB, free: 12.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002162/0.4331, allocations: 1.702 MB / 480.7 MB, free: 11 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001344/0.4345, allocations: 325 kB / 481 MB, free: 10.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001103/0.4356, allocations: 0.7453 MB / 481.8 MB, free: 9.93 MB / 398.1 MB Notification: Performance of SimCode: time 9.42e-07/0.4356, allocations: 0 / 481.8 MB, free: 9.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08763/0.5233, allocations: 40.76 MB / 0.5103 GB, free: 1.562 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.03/10.55, allocations: 15.91 kB / 0.5103 GB, free: 1.547 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Conveyor.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor_res.csv","/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_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches