Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.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_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Initialize",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.00132/0.001327, 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.001302/0.001302, 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.526/1.526, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001664/0.001664, allocations: 52.2 kB / 328 MB, free: 3.812 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09797/0.09964, allocations: 46.62 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.2092/0.3089, allocations: 12.83 MB / 387.5 MB, free: 6.012 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008943/0.3179, allocations: 4.278 MB / 391.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002949/0.3209, allocations: 64.59 kB / 391.8 MB, free: 3.293 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003347/0.3243, allocations: 0.9767 MB / 392.8 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004864/0.3292, allocations: 1.288 MB / 394.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002581/0.3318, allocations: 0.8604 MB / 395 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006434/0.3383, allocations: 4.039 MB / 399 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004933/0.3432, allocations: 3.184 MB / 402.2 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004235/0.3475, allocations: 1.877 MB / 404.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005291/0.3528, allocations: 2.111 MB / 406.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00229/0.3552, allocations: 0.509 MB / 406.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004054/0.3593, allocations: 0.721 MB / 407.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002599/0.3619, allocations: 1.142 MB / 408.5 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005223/0.3671, allocations: 2.124 MB / 410.7 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01092/0.3781, allocations: 6.759 MB / 417.4 MB, free: 4.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.036e-06/0.3782, allocations: 3.938 kB / 417.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.3782, allocations: 0 / 417.4 MB, free: 4.656 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002413/0.3784, allocations: 0 / 417.4 MB, free: 4.656 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.0144/0.3928, allocations: 4.486 MB / 421.9 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.3929, allocations: 12.03 kB / 421.9 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001218/0.3941, allocations: 447 kB / 422.4 MB, free: 176 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004902/0.3991, allocations: 0.8262 MB / 423.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005432/0.4045, allocations: 2.34 MB / 425.5 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002475/0.4048, allocations: 234.8 kB / 425.8 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001007/0.4058, allocations: 315.9 kB / 426.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00954/0.4154, allocations: 4.254 MB / 430.3 MB, free: 8.105 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.534e-05/0.4155, allocations: 3.984 kB / 430.3 MB, free: 8.102 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000333/0.4158, allocations: 128 kB / 430.4 MB, free: 7.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001532/0.416, allocations: 146.2 kB / 430.6 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00703/0.423, allocations: 3.651 MB / 434.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02473/0.4478, allocations: 13.37 MB / 447.6 MB, free: 6.449 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007355/0.4552, allocations: 6.87 MB / 454.5 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002718/0.458, allocations: 1.413 MB / 455.9 MB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006955/0.4649, allocations: 3.632 MB / 459.5 MB, free: 9.539 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.695e-05/0.465, allocations: 51.56 kB / 459.6 MB, free: 9.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=124): time 3.838e-06/0.465, allocations: 0 / 459.6 MB, free: 9.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=144): time 0.01512/0.4802, allocations: 6.686 MB / 466.3 MB, free: 2.602 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.95e-05/0.4803, allocations: 64.72 kB / 466.3 MB, free: 2.523 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003225/0.4835, allocations: 1.859 MB / 468.2 MB, free: 0.6641 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002463/0.4838, allocations: 49.7 kB / 468.2 MB, free: 0.6094 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001205/0.485, allocations: 1.455 MB / 469.7 MB, free: 15.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005909/0.4856, allocations: 0.5151 MB / 470.2 MB, free: 14.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005244/0.4861, allocations: 303.4 kB / 470.5 MB, free: 14.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.4863, allocations: 305.1 kB / 470.8 MB, free: 14.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00134/0.4876, allocations: 0.7652 MB / 471.6 MB, free: 13.25 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001693/0.4893, allocations: 1.224 MB / 472.8 MB, free: 11.84 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003217/0.4926, allocations: 2.108 MB / 474.9 MB, free: 9.539 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.4926, allocations: 4 kB / 474.9 MB, free: 9.535 MB / 398.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005072/0.4977, allocations: 2.672 MB / 477.6 MB, free: 6.848 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.261e-05/0.4978, allocations: 15.94 kB / 477.6 MB, free: 6.832 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.61e-05/0.4978, allocations: 16 kB / 477.6 MB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001438/0.4992, allocations: 497.4 kB / 478.1 MB, free: 6.324 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001596/0.5008, allocations: 399.4 kB / 478.5 MB, free: 5.934 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0097/0.5106, allocations: 6.925 MB / 485.4 MB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002095/0.5127, allocations: 83.84 kB / 485.5 MB, free: 14.64 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001996/0.5129, allocations: 68 kB / 485.5 MB, free: 14.57 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 178 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (7,31,61.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00224/0.5152, allocations: 1.048 MB / 486.6 MB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005627/0.5158, allocations: 206.7 kB / 486.8 MB, free: 13.31 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004838/0.5206, allocations: 2.496 MB / 489.3 MB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.003e-05/0.5207, allocations: 15.94 kB / 489.3 MB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.667e-05/0.5207, allocations: 8 kB / 489.3 MB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-05/0.5207, allocations: 7.969 kB / 489.3 MB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009807/0.5305, allocations: 5.533 MB / 494.9 MB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/0.5306, allocations: 7.984 kB / 494.9 MB, free: 5.035 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/0.5316, allocations: 215.7 kB / 495.1 MB, free: 4.824 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001349/0.533, allocations: 0.4961 MB / 495.6 MB, free: 4.312 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001276/0.5331, allocations: 35.98 kB / 495.6 MB, free: 4.277 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01204/0.5452, allocations: 11.41 MB / 0.4951 GB, free: 8.172 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.69e-06/0.5452, allocations: 7.969 kB / 0.4951 GB, free: 8.164 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006342/0.5515, allocations: 3.567 MB / 0.4986 GB, free: 4.508 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001306/0.5529, allocations: 467.7 kB / 0.4991 GB, free: 4.031 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003776/0.5533, allocations: 32 kB / 0.4991 GB, free: 4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001021/0.5543, allocations: 67.94 kB / 0.4992 GB, free: 3.934 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003278/0.5547, allocations: 113 kB / 0.4993 GB, free: 3.824 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.705e-05/0.5548, allocations: 43.98 kB / 0.4993 GB, free: 3.781 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002114/0.5569, allocations: 1.29 MB / 0.5006 GB, free: 2.5 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.5569, allocations: 0 / 0.5006 GB, free: 2.5 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002622/0.5595, allocations: 0.5898 MB / 0.5012 GB, free: 1.91 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,8,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00653/0.5661, allocations: 4.184 MB / 0.5052 GB, free: 13.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004525/0.5706, allocations: 2.403 MB / 0.5076 GB, free: 11.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.5707, allocations: 4.062 kB / 0.5076 GB, free: 11.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002806/0.5735, allocations: 1.727 MB / 0.5093 GB, free: 9.402 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002731/0.5763, allocations: 0.5067 MB / 0.5098 GB, free: 8.895 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0415/0.6178, allocations: 21.35 MB / 0.5306 GB, free: 2.922 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002949/0.6208, allocations: 2.374 MB / 0.5329 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001536/0.6224, allocations: 416.8 kB / 0.5333 GB, free: 112 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001727/0.6241, allocations: 1.148 MB / 0.5345 GB, free: 14.96 MB / 478.1 MB Notification: Performance of SimCode: time 1.152e-06/0.6241, allocations: 0 / 0.5345 GB, free: 14.96 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3092/0.9333, allocations: 55.2 MB / 0.5884 GB, free: 136.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.84/14.78, allocations: 12.28 kB / 0.5884 GB, free: 136.6 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_res.csv --start-time 0 --stop-time 1.5 --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_Initialize.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize_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_Initialize/AIMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches