Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.001167/0.001167, allocations: 104.1 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.001208/0.001208, 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.502/1.502, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001534, allocations: 58.53 kB / 307.1 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1118, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.1877/0.2996, allocations: 14.05 MB / 371.6 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01083/0.3104, allocations: 5.2 MB / 376.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003448/0.3139, allocations: 83.62 kB / 376.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003827/0.3178, allocations: 1.116 MB / 378 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005343/0.3232, allocations: 1.388 MB / 379.4 MB, free: 9.023 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00292/0.3262, allocations: 1.004 MB / 380.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006519/0.3327, allocations: 4.094 MB / 384.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004507/0.3372, allocations: 3.267 MB / 387.8 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003718/0.341, allocations: 1.92 MB / 389.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005412/0.3464, allocations: 2.283 MB / 392 MB, free: 3.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00163/0.3481, allocations: 0.508 MB / 392.5 MB, free: 3.215 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003282/0.3514, allocations: 0.783 MB / 393.3 MB, free: 3.125 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001505/0.3529, allocations: 1.147 MB / 394.4 MB, free: 2.398 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00377/0.3567, allocations: 2.156 MB / 396.6 MB, free: 0.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006988/0.3637, allocations: 6.802 MB / 403.4 MB, free: 12.2 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.663e-06/0.3638, allocations: 2.406 kB / 403.4 MB, free: 12.2 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3638, allocations: 0 / 403.4 MB, free: 12.2 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000162/0.3639, allocations: 0 / 403.4 MB, free: 12.2 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 843 * Number of variables: 843 Notification: Performance of Generate backend data structure: time 0.0134/0.3773, allocations: 4.517 MB / 407.9 MB, free: 8.141 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.953e-05/0.3774, allocations: 16.03 kB / 407.9 MB, free: 8.125 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007782/0.3782, allocations: 462.7 kB / 408.4 MB, free: 7.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004578/0.3828, allocations: 0.8268 MB / 409.2 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005268/0.3881, allocations: 2.42 MB / 411.6 MB, free: 4.391 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001855/0.3883, allocations: 242.2 kB / 411.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005802/0.3889, allocations: 316 kB / 412.2 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007943/0.3968, allocations: 4.29 MB / 416.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.851e-05/0.397, allocations: 3.906 kB / 416.5 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003118/0.3973, allocations: 129.5 kB / 416.6 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00015/0.3974, allocations: 154.4 kB / 416.7 MB, free: 15.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00616/0.4036, allocations: 3.629 MB / 420.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02029/0.4239, allocations: 13.51 MB / 433.9 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007356/0.4313, allocations: 7.226 MB / 441.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00307/0.4344, allocations: 1.601 MB / 442.7 MB, free: 4.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008055/0.4425, allocations: 4.316 MB / 447 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001486/0.444, allocations: 0.8752 MB / 447.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of pre-optimization done (n=132): time 4.118e-06/0.444, allocations: 0 / 447.9 MB, free: 14.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01444/0.4585, allocations: 6.706 MB / 454.6 MB, free: 7.824 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001674/0.4587, allocations: 222.9 kB / 454.8 MB, free: 7.559 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004306/0.463, allocations: 1.94 MB / 456.8 MB, free: 5.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001731/0.4632, allocations: 49.7 kB / 456.8 MB, free: 5.516 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001722/0.4649, allocations: 1.492 MB / 458.3 MB, free: 4.012 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005288/0.4655, allocations: 484.1 kB / 458.8 MB, free: 3.543 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005892/0.4661, allocations: 307.3 kB / 459.1 MB, free: 3.238 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001166/0.4662, allocations: 305.1 kB / 459.4 MB, free: 2.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.4674, allocations: 0.6754 MB / 460.1 MB, free: 2.262 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001707/0.4692, allocations: 1.225 MB / 461.3 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002881/0.4721, allocations: 1.97 MB / 463.3 MB, free: 14.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.769e-05/0.4721, allocations: 4 kB / 463.3 MB, free: 14.63 MB / 382.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004991/0.4771, allocations: 2.51 MB / 465.8 MB, free: 12.08 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.107e-05/0.4772, allocations: 15.98 kB / 465.8 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.233e-05/0.4772, allocations: 16 kB / 465.8 MB, free: 12.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.4783, allocations: 339 kB / 466.1 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00149/0.4798, allocations: 375.4 kB / 466.5 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00748/0.4873, allocations: 6.798 MB / 473.3 MB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002162/0.4895, allocations: 103.8 kB / 473.4 MB, free: 4.023 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002952/0.4898, allocations: 72 kB / 473.5 MB, free: 3.953 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * 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 (193): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 3 systems {(1,4,100.0%), (1,8,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002737/0.4925, allocations: 1.032 MB / 474.5 MB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007389/0.4933, allocations: 209.6 kB / 474.7 MB, free: 2.703 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004913/0.4982, allocations: 2.341 MB / 477 MB, free: 308 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.027e-05/0.4982, allocations: 19.94 kB / 477.1 MB, free: 288 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.408e-05/0.4983, allocations: 12 kB / 477.1 MB, free: 276 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.991e-05/0.4983, allocations: 11.97 kB / 477.1 MB, free: 264 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01155/0.5099, allocations: 5.245 MB / 482.3 MB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.131e-05/0.5099, allocations: 4 kB / 482.3 MB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008224/0.5108, allocations: 171.8 kB / 482.5 MB, free: 10.73 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001474/0.5123, allocations: 0.515 MB / 483 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001312/0.5124, allocations: 39.98 kB / 483.1 MB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01329/0.5257, allocations: 11.58 MB / 494.6 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.5258, allocations: 0 / 494.6 MB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006745/0.5325, allocations: 3.241 MB / 497.9 MB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001685/0.5342, allocations: 434.5 kB / 498.3 MB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008196/0.5351, allocations: 36 kB / 498.3 MB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001428/0.5365, allocations: 59.95 kB / 498.4 MB, free: 10.04 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003317/0.5369, allocations: 105.2 kB / 498.5 MB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/0.537, allocations: 39.98 kB / 498.5 MB, free: 9.895 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002924/0.5399, allocations: 1.331 MB / 499.9 MB, free: 8.539 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.517e-06/0.54, allocations: 0 / 499.9 MB, free: 8.539 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003498/0.5435, allocations: 0.5938 MB / 0.4887 GB, free: 7.945 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 7 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (99): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,8,100.0%), (1,3,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007506/0.551, allocations: 4.162 MB / 0.4928 GB, free: 3.844 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005417/0.5564, allocations: 2.632 MB / 0.4954 GB, free: 1.152 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.5565, allocations: 0 / 0.4954 GB, free: 1.152 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00254/0.559, allocations: 1.61 MB / 0.4969 GB, free: 15.48 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003248/0.5623, allocations: 0.5571 MB / 0.4975 GB, free: 14.93 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04403/0.6063, allocations: 22.68 MB / 0.5196 GB, free: 6.445 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002952/0.6093, allocations: 2.36 MB / 0.5219 GB, free: 4.055 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001705/0.6111, allocations: 409.2 kB / 0.5223 GB, free: 3.652 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001785/0.6129, allocations: 1.191 MB / 0.5235 GB, free: 2.461 MB / 446.1 MB Notification: Performance of SimCode: time 7.32e-07/0.6129, allocations: 0 / 0.5235 GB, free: 2.461 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2869/0.8998, allocations: 54.01 MB / 0.5762 GB, free: 116.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/11.46, allocations: 16.09 kB / 0.5762 GB, free: 116.9 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Conveyor.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Conveyor/IMC_Conveyor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches