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.001132/0.001132, allocations: 113.2 kB / 17.73 MB, free: 5.32 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.001072/0.001072, allocations: 184.2 kB / 18.66 MB, free: 4.398 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.418/1.418, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.002232/0.002232, allocations: 55.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1118, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Conveyor): time 0.1984/0.3102, allocations: 13.38 MB / 388 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009344/0.3196, allocations: 4.749 MB / 392.8 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002791/0.3224, allocations: 71.69 kB / 392.9 MB, free: 2.574 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003279/0.3257, allocations: 1.098 MB / 394 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004356/0.3301, allocations: 1.36 MB / 395.3 MB, free: 1.156 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002631/0.3327, allocations: 0.9837 MB / 396.3 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006497/0.3393, allocations: 4.062 MB / 400.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004424/0.3437, allocations: 3.2 MB / 403.6 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004264/0.348, allocations: 1.905 MB / 405.5 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004845/0.3529, allocations: 2.163 MB / 407.6 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001912/0.3548, allocations: 0.5124 MB / 408.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003655/0.3585, allocations: 0.75 MB / 408.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0025/0.361, allocations: 1.137 MB / 410 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006549/0.3676, allocations: 2.146 MB / 412.2 MB, free: 8.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01088/0.3785, allocations: 6.785 MB / 419 MB, free: 3.523 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.3786, allocations: 3.984 kB / 419 MB, free: 3.52 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3786, allocations: 0.6875 kB / 419 MB, free: 3.52 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000248/0.3788, allocations: 0 / 419 MB, free: 3.52 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.01529/0.3941, allocations: 4.489 MB / 423.5 MB, free: 15.06 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.224e-05/0.3942, allocations: 8.031 kB / 423.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001453/0.3957, allocations: 455.7 kB / 423.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004889/0.4006, allocations: 0.8201 MB / 424.7 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006182/0.4068, allocations: 2.334 MB / 427.1 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00026/0.407, allocations: 238.4 kB / 427.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001204/0.4083, allocations: 315.9 kB / 427.6 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01103/0.4193, allocations: 4.28 MB / 431.9 MB, free: 6.512 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001095/0.4194, allocations: 8 kB / 431.9 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006832/0.4201, allocations: 139.9 kB / 432 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000169/0.4203, allocations: 154.4 kB / 432.2 MB, free: 6.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007726/0.4281, allocations: 3.617 MB / 435.8 MB, free: 2.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02622/0.4543, allocations: 13.24 MB / 449 MB, free: 5.008 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008243/0.4626, allocations: 6.968 MB / 456 MB, free: 13.14 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002694/0.4653, allocations: 1.363 MB / 457.4 MB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008095/0.4734, allocations: 3.814 MB / 461.2 MB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001442/0.4749, allocations: 0.8571 MB / 462 MB, free: 6.965 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 4.228e-06/0.4749, allocations: 0 / 462 MB, free: 6.965 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.01425/0.4892, allocations: 6.485 MB / 468.5 MB, free: 280 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.4893, allocations: 226.9 kB / 468.8 MB, free: 4 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003925/0.4933, allocations: 1.914 MB / 470.7 MB, free: 14.09 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001451/0.4934, allocations: 53.7 kB / 470.7 MB, free: 14.03 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001599/0.4951, allocations: 1.47 MB / 472.2 MB, free: 12.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004894/0.4956, allocations: 493 kB / 472.7 MB, free: 12.05 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00058/0.4961, allocations: 307.3 kB / 473 MB, free: 11.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.4963, allocations: 301.1 kB / 473.3 MB, free: 11.45 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.4975, allocations: 0.6598 MB / 473.9 MB, free: 10.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001592/0.4991, allocations: 1.222 MB / 475.1 MB, free: 9.348 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002847/0.502, allocations: 1.94 MB / 477.1 MB, free: 7.199 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.479e-05/0.502, allocations: 4 kB / 477.1 MB, free: 7.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.004335/0.5063, allocations: 2.424 MB / 479.5 MB, free: 4.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.387e-05/0.5064, allocations: 12 kB / 479.5 MB, free: 4.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-05/0.5064, allocations: 12 kB / 479.5 MB, free: 4.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008477/0.5073, allocations: 287.3 kB / 479.8 MB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/0.5087, allocations: 391.3 kB / 480.2 MB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00665/0.5154, allocations: 6.378 MB / 486.6 MB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001741/0.5171, allocations: 88.02 kB / 486.7 MB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002126/0.5174, allocations: 76 kB / 486.7 MB, free: 13.08 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.002329/0.5197, allocations: 1.031 MB / 487.8 MB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005434/0.5203, allocations: 201.5 kB / 488 MB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004318/0.5246, allocations: 2.253 MB / 490.2 MB, free: 9.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/0.5246, allocations: 12 kB / 490.2 MB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.209e-05/0.5247, allocations: 8 kB / 490.2 MB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.106e-05/0.5247, allocations: 11.97 kB / 490.3 MB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009953/0.5346, allocations: 5.088 MB / 495.3 MB, free: 4.273 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/0.5347, allocations: 0 / 495.3 MB, free: 4.273 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008284/0.5355, allocations: 183.9 kB / 495.5 MB, free: 4.094 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001299/0.5368, allocations: 460.1 kB / 496 MB, free: 3.629 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000125/0.537, allocations: 43.92 kB / 496 MB, free: 3.586 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01146/0.5484, allocations: 11.13 MB / 0.4953 GB, free: 7.746 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.5485, allocations: 8.016 kB / 0.4953 GB, free: 7.738 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005763/0.5542, allocations: 3.136 MB / 0.4983 GB, free: 4.512 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001462/0.5557, allocations: 434.5 kB / 0.4987 GB, free: 4.066 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006885/0.5564, allocations: 32 kB / 0.4988 GB, free: 4.035 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001292/0.5577, allocations: 71.94 kB / 0.4988 GB, free: 3.965 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003199/0.5581, allocations: 101.1 kB / 0.4989 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.627e-05/0.5582, allocations: 39.98 kB / 0.499 GB, free: 3.828 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002766/0.5609, allocations: 1.311 MB / 0.5003 GB, free: 2.527 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.561, allocations: 4 kB / 0.5003 GB, free: 2.523 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003174/0.5641, allocations: 0.582 MB / 0.5008 GB, free: 1.941 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.007163/0.5713, allocations: 4.046 MB / 0.5048 GB, free: 13.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004139/0.5755, allocations: 2.168 MB / 0.5069 GB, free: 11.57 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.09e-06/0.5755, allocations: 448 / 0.5069 GB, free: 11.57 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002683/0.5782, allocations: 1.594 MB / 0.5085 GB, free: 9.918 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003333/0.5816, allocations: 0.5406 MB / 0.509 GB, free: 9.375 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03871/0.6203, allocations: 20 MB / 0.5285 GB, free: 4.68 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003139/0.6235, allocations: 2.348 MB / 0.5308 GB, free: 2.301 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001473/0.625, allocations: 417 kB / 0.5312 GB, free: 1.891 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001651/0.6266, allocations: 1.167 MB / 0.5323 GB, free: 0.7227 MB / 462.1 MB Notification: Performance of SimCode: time 1.273e-06/0.6266, allocations: 0 / 0.5323 GB, free: 0.7227 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3095/0.9362, allocations: 54.43 MB / 0.5855 GB, free: 138.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.73/14.67, allocations: 8.172 kB / 0.5855 GB, free: 138.3 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