Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 110.5 kB / 17.73 MB, free: 5.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001579/0.001579, allocations: 187.1 kB / 18.66 MB, free: 4.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.508/1.508, allocations: 205.1 MB / 224.5 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 56.39 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1316/0.133, allocations: 46.62 MB / 374.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.2416/0.3747, allocations: 13.39 MB / 388.1 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01093/0.3857, allocations: 4.737 MB / 392.8 MB, free: 2.617 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003865/0.3897, allocations: 79.44 kB / 392.9 MB, free: 2.59 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004475/0.3942, allocations: 1.139 MB / 394 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006721/0.4009, allocations: 1.404 MB / 395.4 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003815/0.4048, allocations: 0.9731 MB / 396.4 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008278/0.4131, allocations: 4.064 MB / 400.4 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00705/0.4201, allocations: 3.207 MB / 403.7 MB, free: 13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005103/0.4253, allocations: 1.926 MB / 405.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0055/0.4308, allocations: 2.164 MB / 407.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002313/0.4332, allocations: 0.5118 MB / 408.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004092/0.4373, allocations: 0.7482 MB / 409 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002745/0.4401, allocations: 1.142 MB / 410.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005911/0.446, allocations: 2.142 MB / 412.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01186/0.4579, allocations: 6.802 MB / 419.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.458, allocations: 1.375 kB / 419.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.458, allocations: 0 / 419.1 MB, free: 3.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002876/0.4583, allocations: 0 / 419.1 MB, free: 3.453 MB / 334.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.01665/0.4749, allocations: 4.583 MB / 423.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.839e-05/0.475, allocations: 8.031 kB / 423.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001564/0.4766, allocations: 467.7 kB / 424.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005336/0.4819, allocations: 0.8339 MB / 425 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006049/0.488, allocations: 2.342 MB / 427.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002884/0.4883, allocations: 238.4 kB / 427.5 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001348/0.4897, allocations: 323.9 kB / 427.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/0.5016, allocations: 4.284 MB / 432.1 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/0.5018, allocations: 4 kB / 432.2 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008145/0.5026, allocations: 135.9 kB / 432.3 MB, free: 6.133 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001766/0.5028, allocations: 150.4 kB / 432.4 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008738/0.5116, allocations: 3.621 MB / 436.1 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03206/0.5437, allocations: 13.28 MB / 449.3 MB, free: 4.738 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008387/0.5521, allocations: 6.966 MB / 456.3 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002729/0.5549, allocations: 1.363 MB / 457.7 MB, free: 11.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008573/0.5635, allocations: 3.821 MB / 461.5 MB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00145/0.565, allocations: 0.8493 MB / 462.3 MB, free: 6.699 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 1.785e-05/0.5651, allocations: 0 / 462.3 MB, free: 6.699 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01447/0.5796, allocations: 6.541 MB / 468.9 MB, free: 15.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001422/0.5798, allocations: 234.9 kB / 469.1 MB, free: 15.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003955/0.5837, allocations: 1.911 MB / 471 MB, free: 13.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001946/0.5839, allocations: 49.7 kB / 471.1 MB, free: 13.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001584/0.5855, allocations: 1.51 MB / 472.6 MB, free: 12.19 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006977/0.5863, allocations: 0.5035 MB / 473.1 MB, free: 11.68 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005873/0.5869, allocations: 307.5 kB / 473.4 MB, free: 11.38 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.957e-05/0.587, allocations: 305.1 kB / 473.7 MB, free: 11.08 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.5882, allocations: 0.6676 MB / 474.3 MB, free: 10.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00171/0.5899, allocations: 1.206 MB / 475.5 MB, free: 8.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003007/0.5929, allocations: 1.944 MB / 477.5 MB, free: 6.828 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.669e-05/0.5929, allocations: 4 kB / 477.5 MB, free: 6.824 MB / 398.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.00481/0.5978, allocations: 2.437 MB / 479.9 MB, free: 4.348 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.87e-05/0.5978, allocations: 12 kB / 479.9 MB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.033e-05/0.5979, allocations: 12 kB / 480 MB, free: 4.324 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008271/0.5987, allocations: 295.2 kB / 480.2 MB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001609/0.6003, allocations: 379.4 kB / 480.6 MB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006718/0.6071, allocations: 6.387 MB / 487 MB, free: 12.85 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002155/0.6093, allocations: 84.02 kB / 487.1 MB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002925/0.6096, allocations: 79.98 kB / 487.2 MB, free: 12.69 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (196): * Single equations (assignments): 192 * 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,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002604/0.6122, allocations: 1.035 MB / 488.2 MB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008089/0.613, allocations: 214.6 kB / 488.4 MB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004687/0.6177, allocations: 2.242 MB / 490.7 MB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.598e-05/0.6178, allocations: 12 kB / 490.7 MB, free: 9.113 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.516e-05/0.6178, allocations: 11.94 kB / 490.7 MB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.742e-05/0.6178, allocations: 11.97 kB / 490.7 MB, free: 9.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01107/0.6289, allocations: 5.096 MB / 495.8 MB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.6289, allocations: 0 / 495.8 MB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008434/0.6298, allocations: 183.8 kB / 496 MB, free: 3.691 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001402/0.6312, allocations: 460 kB / 496.4 MB, free: 3.227 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001731/0.6315, allocations: 39.98 kB / 496.4 MB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01338/0.6449, allocations: 11.13 MB / 0.4957 GB, free: 7.348 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.341e-06/0.6449, allocations: 4.031 kB / 0.4957 GB, free: 7.344 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006399/0.6513, allocations: 3.145 MB / 0.4988 GB, free: 4.109 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001468/0.6528, allocations: 451.6 kB / 0.4992 GB, free: 3.648 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000806/0.6537, allocations: 28 kB / 0.4992 GB, free: 3.621 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/0.6551, allocations: 67.95 kB / 0.4993 GB, free: 3.555 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003407/0.6554, allocations: 105.1 kB / 0.4994 GB, free: 3.453 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001061/0.6555, allocations: 39.98 kB / 0.4994 GB, free: 3.414 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002871/0.6584, allocations: 1.315 MB / 0.5007 GB, free: 2.109 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.323e-06/0.6585, allocations: 0 / 0.5007 GB, free: 2.109 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003519/0.662, allocations: 0.582 MB / 0.5013 GB, free: 1.527 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (102): * Single equations (assignments): 95 * 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,5,100.0%), (1,13,100.0%), (1,3,100.0%), (1,8,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.008166/0.6702, allocations: 4.07 MB / 0.5052 GB, free: 13.36 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004278/0.6746, allocations: 2.176 MB / 0.5074 GB, free: 11.13 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.6746, allocations: 64 / 0.5074 GB, free: 11.13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002842/0.6775, allocations: 1.594 MB / 0.5089 GB, free: 9.473 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003874/0.6814, allocations: 0.5367 MB / 0.5095 GB, free: 8.934 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04568/0.7271, allocations: 20.11 MB / 0.5291 GB, free: 4.129 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004089/0.7312, allocations: 2.348 MB / 0.5314 GB, free: 1.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00189/0.7332, allocations: 413 kB / 0.5318 GB, free: 1.344 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002216/0.7354, allocations: 1.167 MB / 0.5329 GB, free: 180 kB / 462.1 MB Notification: Performance of SimCode: time 1.543e-06/0.7354, allocations: 4 kB / 0.5329 GB, free: 176 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3662/1.102, allocations: 54.44 MB / 0.5861 GB, free: 137.9 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.57/15.67, allocations: 4.891 kB / 0.5861 GB, free: 137.9 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Conveyor.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Conveyor/AIMC_Conveyor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches