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.001563/0.001563, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001877/0.001877, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.59/2.59, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.002272/0.002273, allocations: 47.92 kB / 280.8 MB, free: 3.086 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.1805, allocations: 46.62 MB / 327.4 MB, free: 4.395 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Initialize): time 0.02854/0.2091, allocations: 12.83 MB / 340.2 MB, free: 7.488 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01671/0.2259, allocations: 4.288 MB / 344.5 MB, free: 3.188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005427/0.2314, allocations: 63.75 kB / 344.6 MB, free: 3.125 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006889/0.2384, allocations: 0.9707 MB / 345.5 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01076/0.2492, allocations: 1.289 MB / 346.8 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005465/0.2548, allocations: 0.8457 MB / 347.7 MB, free: 4 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01083/0.2656, allocations: 4.039 MB / 351.7 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009686/0.2754, allocations: 3.188 MB / 354.9 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006508/0.282, allocations: 1.869 MB / 356.8 MB, free: 6.809 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007042/0.2891, allocations: 2.106 MB / 358.9 MB, free: 4.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002759/0.2919, allocations: 0.5156 MB / 359.4 MB, free: 4.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004665/0.2966, allocations: 0.7146 MB / 360.1 MB, free: 3.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0033/0.3, allocations: 1.138 MB / 361.2 MB, free: 2.324 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007055/0.3071, allocations: 2.124 MB / 363.4 MB, free: 196 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01686/0.324, allocations: 6.695 MB / 370.1 MB, free: 9.477 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.425e-05/0.3241, allocations: 0 / 370.1 MB, free: 9.477 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.3242, allocations: 4 kB / 370.1 MB, free: 9.473 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002785/0.3245, allocations: 0 / 370.1 MB, free: 9.473 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: 819 * Number of variables: 819 Notification: Performance of Generate backend data structure: time 0.02909/0.3536, allocations: 4.405 MB / 374.5 MB, free: 4.992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001097/0.3537, allocations: 8.031 kB / 374.5 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002966/0.3567, allocations: 451.1 kB / 374.9 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0108/0.3676, allocations: 0.8086 MB / 375.7 MB, free: 3.719 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01018/0.3778, allocations: 2.299 MB / 378 MB, free: 1.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005767/0.3785, allocations: 230.6 kB / 378.2 MB, free: 1.137 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002457/0.381, allocations: 323.8 kB / 378.6 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3638/0.7449, allocations: 4.246 MB / 382.8 MB, free: 47.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003164/0.7453, allocations: 5.594 kB / 382.8 MB, free: 47.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001895/0.7472, allocations: 130.5 kB / 382.9 MB, free: 47.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005247/0.7478, allocations: 145.2 kB / 383.1 MB, free: 47.8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01896/0.7668, allocations: 3.655 MB / 386.7 MB, free: 46.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05006/0.817, allocations: 13.5 MB / 400.2 MB, free: 37.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01048/0.8275, allocations: 6.868 MB / 407.1 MB, free: 31.1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004309/0.8319, allocations: 1.416 MB / 408.5 MB, free: 30.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01355/0.8455, allocations: 3.646 MB / 412.2 MB, free: 27.73 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.476e-05/0.8457, allocations: 43.56 kB / 412.2 MB, free: 27.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=124): time 8.637e-06/0.8457, allocations: 4 kB / 412.2 MB, free: 27.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=144): time 0.02165/0.8674, allocations: 6.622 MB / 418.8 MB, free: 20.88 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.8675, allocations: 72.72 kB / 418.9 MB, free: 20.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00486/0.8724, allocations: 1.863 MB / 420.8 MB, free: 18.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002895/0.8727, allocations: 49.7 kB / 420.8 MB, free: 18.88 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/0.8738, allocations: 1.425 MB / 422.2 MB, free: 17.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006153/0.8745, allocations: 496.3 kB / 422.7 MB, free: 16.96 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007245/0.8752, allocations: 303.3 kB / 423 MB, free: 16.66 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.58e-05/0.8753, allocations: 305.1 kB / 423.3 MB, free: 16.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.8766, allocations: 0.7613 MB / 424.1 MB, free: 15.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001461/0.878, allocations: 1.224 MB / 425.3 MB, free: 14.18 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002962/0.881, allocations: 2.107 MB / 427.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.991e-05/0.8811, allocations: 4 kB / 427.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005097/0.8862, allocations: 2.67 MB / 430.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.102e-05/0.8862, allocations: 8 kB / 430.1 MB, free: 9.191 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.847e-05/0.8863, allocations: 16 kB / 430.1 MB, free: 9.176 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001411/0.8877, allocations: 0.4939 MB / 430.6 MB, free: 8.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/0.8891, allocations: 391.4 kB / 431 MB, free: 8.293 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01094/0.9001, allocations: 6.938 MB / 437.9 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00351/0.9037, allocations: 79.86 kB / 438 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004773/0.9042, allocations: 77.84 kB / 438.1 MB, free: 0.9258 MB / 318.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.003812/0.908, allocations: 1.044 MB / 439.1 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/0.9091, allocations: 193.7 kB / 439.3 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00836/0.9175, allocations: 2.5 MB / 441.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.028e-05/0.9176, allocations: 20 kB / 441.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.245e-05/0.9177, allocations: 8 kB / 441.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-05/0.9177, allocations: 7.969 kB / 441.8 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02146/0.9392, allocations: 5.529 MB / 447.4 MB, free: 7.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.618e-05/0.9393, allocations: 6.156 kB / 447.4 MB, free: 7.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001901/0.9412, allocations: 219.9 kB / 447.6 MB, free: 7.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00247/0.9437, allocations: 0.4984 MB / 448.1 MB, free: 6.719 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002961/0.944, allocations: 31.98 kB / 448.1 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02119/0.9652, allocations: 11.42 MB / 459.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.344e-05/0.9653, allocations: 3.938 kB / 459.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01039/0.9757, allocations: 3.557 MB / 463.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002007/0.9778, allocations: 462.5 kB / 463.6 MB, free: 6.488 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001182/0.979, allocations: 36 kB / 463.6 MB, free: 6.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002147/0.9812, allocations: 79.81 kB / 463.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005113/0.9818, allocations: 105.2 kB / 463.8 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/0.982, allocations: 39.98 kB / 463.8 MB, free: 6.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003536/0.9855, allocations: 1.286 MB / 465.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.162e-06/0.9855, allocations: 0 / 465.1 MB, free: 4.953 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.003519/0.9891, allocations: 0.5885 MB / 465.7 MB, free: 4.367 MB / 350.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.01129/1, allocations: 4.167 MB / 469.9 MB, free: 108 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.01056/1.011, allocations: 2.848 MB / 472.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/1.011, allocations: 0 / 472.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004528/1.016, allocations: 1.735 MB / 474.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005797/1.021, allocations: 0.5077 MB / 474.9 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07219/1.094, allocations: 23.74 MB / 498.7 MB, free: 1.473 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004562/1.098, allocations: 2.37 MB / 0.4893 GB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.002329/1.101, allocations: 416.8 kB / 0.4897 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002137/1.103, allocations: 1.151 MB / 0.4908 GB, free: 13.51 MB / 398.1 MB Notification: Performance of SimCode: time 2.444e-06/1.103, allocations: 0 / 0.4908 GB, free: 13.51 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4311/1.534, allocations: 53.93 MB / 0.5435 GB, free: 145.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.66/18.2, allocations: 12.62 kB / 0.5435 GB, free: 145.1 MB / 430.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