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.00107/0.00107, allocations: 117.6 kB / 17.78 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00109/0.00109, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.31/1.31, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2122/0.2134, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Conveyor): time 0.01479/0.2282, allocations: 9.508 MB / 418.3 MB, free: 7.984 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01007/0.2383, allocations: 3.627 MB / 421.9 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001717/0.2401, allocations: 51.75 kB / 422 MB, free: 4.297 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00306/0.2432, allocations: 0.7642 MB / 422.7 MB, free: 3.531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003653/0.2469, allocations: 0.8779 MB / 423.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00173/0.2486, allocations: 459.1 kB / 424 MB, free: 2.199 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004254/0.2529, allocations: 2.42 MB / 426.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003477/0.2564, allocations: 1.774 MB / 428.2 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002306/0.2587, allocations: 1.113 MB / 429.4 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003061/0.2618, allocations: 1.393 MB / 430.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007473/0.2626, allocations: 276 kB / 431 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001328/0.264, allocations: 419.8 kB / 431.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001311/0.2653, allocations: 0.8064 MB / 432.2 MB, free: 9.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002303/0.2676, allocations: 1.279 MB / 433.5 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006036/0.2737, allocations: 3.768 MB / 437.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2737, allocations: 0 / 437.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2737, allocations: 0 / 437.3 MB, free: 4.875 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.845e-05/0.2738, allocations: 3.938 kB / 437.3 MB, free: 4.871 MB / 350.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.008777/0.2826, allocations: 2.75 MB / 440 MB, free: 2.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.2827, allocations: 12.03 kB / 440 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005871/0.2833, allocations: 274.6 kB / 440.3 MB, free: 1.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001269/0.2845, allocations: 295.3 kB / 440.6 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003953/0.2885, allocations: 1.397 MB / 442 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001962/0.2887, allocations: 147.7 kB / 442.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005386/0.2893, allocations: 184 kB / 442.3 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006959/0.2963, allocations: 2.444 MB / 444.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.582e-05/0.2964, allocations: 7.938 kB / 444.8 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003073/0.2967, allocations: 80 kB / 444.9 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001796/0.2969, allocations: 87.69 kB / 444.9 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006071/0.303, allocations: 1.994 MB / 446.9 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01928/0.3223, allocations: 7.338 MB / 454.3 MB, free: 3.527 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00309/0.3254, allocations: 1.348 MB / 455.6 MB, free: 2.113 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002494/0.3279, allocations: 0.8637 MB / 456.5 MB, free: 1.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003293/0.3283, allocations: 130 kB / 456.6 MB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001745/0.3301, allocations: 0.6866 MB / 457.3 MB, free: 400 kB / 366.1 MB Notification: Performance of pre-optimization done (n=99): time 4.99e-06/0.3301, allocations: 0 / 457.3 MB, free: 400 kB / 366.1 MB Notification: Performance of matching and sorting (n=121): time 0.02661/0.3567, allocations: 7.375 MB / 464.7 MB, free: 8.832 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001262/0.3569, allocations: 167.2 kB / 464.8 MB, free: 8.633 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003227/0.3601, allocations: 1.427 MB / 466.3 MB, free: 7.188 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001558/0.3603, allocations: 45.7 kB / 466.3 MB, free: 7.137 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001213/0.3615, allocations: 0.9662 MB / 467.3 MB, free: 6.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006077/0.3621, allocations: 444.3 kB / 467.7 MB, free: 5.723 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006978/0.3629, allocations: 255.4 kB / 468 MB, free: 5.465 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002195/0.3631, allocations: 361.9 kB / 468.3 MB, free: 5.105 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00181/0.3649, allocations: 0.6364 MB / 468.9 MB, free: 4.469 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/0.367, allocations: 1.001 MB / 469.9 MB, free: 3.324 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002406/0.3694, allocations: 1.703 MB / 471.7 MB, free: 1.488 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.3695, allocations: 8 kB / 471.7 MB, free: 1.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=173) (initialization): time 0.003853/0.3733, allocations: 2.352 MB / 474 MB, free: 15.08 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.3734, allocations: 8 kB / 474 MB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.645e-05/0.3734, allocations: 12 kB / 474 MB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001153/0.3745, allocations: 495.5 kB / 474.5 MB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.3757, allocations: 291.6 kB / 474.8 MB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006901/0.3826, allocations: 7.188 MB / 482 MB, free: 6.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001208/0.3838, allocations: 99.92 kB / 482.1 MB, free: 6.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00013/0.384, allocations: 48 kB / 482.1 MB, free: 6.527 MB / 398.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.001026/0.385, allocations: 0.634 MB / 482.8 MB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003257/0.3853, allocations: 163 kB / 482.9 MB, free: 5.723 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003679/0.389, allocations: 2.155 MB / 485.1 MB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.3891, allocations: 15.94 kB / 485.1 MB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.3891, allocations: 4 kB / 485.1 MB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.302e-05/0.3891, allocations: 7.969 kB / 485.1 MB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007522/0.3966, allocations: 4.462 MB / 489.6 MB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.3966, allocations: 4 kB / 489.6 MB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008139/0.3975, allocations: 196.1 kB / 489.8 MB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001384/0.3989, allocations: 0.5384 MB / 490.3 MB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-05/0.399, allocations: 35.98 kB / 490.3 MB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00798/0.407, allocations: 8.726 MB / 499.1 MB, free: 4.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.407, allocations: 4 kB / 499.1 MB, free: 4.836 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004648/0.4116, allocations: 3.096 MB / 0.4904 GB, free: 1.652 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007929/0.4125, allocations: 388 kB / 0.4908 GB, free: 1.254 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002667/0.4127, allocations: 28 kB / 0.4908 GB, free: 1.227 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008604/0.4136, allocations: 67.92 kB / 0.4909 GB, free: 1.16 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.4138, allocations: 100.7 kB / 0.491 GB, free: 1.062 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.389e-05/0.4139, allocations: 36 kB / 0.491 GB, free: 1.027 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001442/0.4153, allocations: 0.9913 MB / 0.492 GB, free: 36 kB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4154, allocations: 0 / 0.492 GB, free: 36 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.00151/0.4169, allocations: 451.9 kB / 0.4924 GB, free: 15.59 MB / 430.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.005827/0.4227, allocations: 4.036 MB / 0.4963 GB, free: 11.6 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003482/0.4262, allocations: 2.254 MB / 0.4985 GB, free: 9.262 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4262, allocations: 0 / 0.4985 GB, free: 9.262 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002239/0.4285, allocations: 1.523 MB / 0.5 GB, free: 7.664 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.4304, allocations: 433.8 kB / 0.5004 GB, free: 7.254 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02372/0.4541, allocations: 16.23 MB / 0.5163 GB, free: 6.465 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001556/0.4557, allocations: 1.706 MB / 0.5179 GB, free: 4.73 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009795/0.4567, allocations: 325 kB / 0.5183 GB, free: 4.406 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001002/0.4577, allocations: 0.7492 MB / 0.519 GB, free: 3.656 MB / 446.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4578, allocations: 0 / 0.519 GB, free: 3.656 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.234/0.6918, allocations: 41.54 MB / 0.5596 GB, free: 116.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.59, allocations: 16.95 kB / 0.5596 GB, free: 116.7 MB / 462.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