Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",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.001532/0.001532, allocations: 100.2 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.001801/0.001801, allocations: 192.1 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.765/2.765, 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.001969/0.00197, allocations: 51.91 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1705, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.02403/0.1946, allocations: 13.68 MB / 341.1 MB, free: 6.629 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01441/0.2091, allocations: 4.509 MB / 345.6 MB, free: 2.102 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003907/0.2131, allocations: 75.62 kB / 345.6 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005244/0.2184, allocations: 1.021 MB / 346.7 MB, free: 1 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008323/0.2267, allocations: 1.382 MB / 348.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004183/0.231, allocations: 0.9159 MB / 349 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01172/0.2427, allocations: 4.734 MB / 353.7 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008844/0.2516, allocations: 3.64 MB / 357.3 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006848/0.2586, allocations: 2.185 MB / 359.5 MB, free: 4.039 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007659/0.2663, allocations: 2.456 MB / 362 MB, free: 1.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002848/0.2692, allocations: 0.5859 MB / 362.6 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004533/0.2738, allocations: 0.8044 MB / 363.4 MB, free: 188 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003074/0.2769, allocations: 1.34 MB / 364.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006564/0.2835, allocations: 2.466 MB / 367.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01442/0.2979, allocations: 7.712 MB / 374.9 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.519e-05/0.298, allocations: 0 / 374.9 MB, free: 4.629 MB / 318.1 MB Notification: Performance of FrontEnd: time 8.015e-06/0.2981, allocations: 4 kB / 374.9 MB, free: 4.625 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003242/0.2984, allocations: 3.938 kB / 374.9 MB, free: 4.621 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.4121/0.7105, allocations: 5.029 MB / 379.9 MB, free: 48.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.585e-05/0.7106, allocations: 9.375 kB / 379.9 MB, free: 48.32 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003101/0.7137, allocations: 0.4999 MB / 380.4 MB, free: 48.26 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009898/0.7236, allocations: 0.8782 MB / 381.3 MB, free: 48.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01102/0.7347, allocations: 2.618 MB / 383.9 MB, free: 46.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005818/0.7354, allocations: 276.4 kB / 384.2 MB, free: 46.49 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002407/0.7378, allocations: 363.7 kB / 384.6 MB, free: 46.37 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02178/0.7596, allocations: 5.029 MB / 389.6 MB, free: 44.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001496/0.7598, allocations: 11.03 kB / 389.6 MB, free: 44.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006938/0.7605, allocations: 153.8 kB / 389.7 MB, free: 44.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000287/0.7608, allocations: 162.7 kB / 389.9 MB, free: 44.17 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01501/0.7758, allocations: 4.384 MB / 394.3 MB, free: 42.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0362/0.8121, allocations: 15.91 MB / 410.2 MB, free: 29.24 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00848/0.8206, allocations: 7.784 MB / 418 MB, free: 20.56 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003428/0.8241, allocations: 1.71 MB / 419.7 MB, free: 18.86 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01028/0.8344, allocations: 4.668 MB / 424.4 MB, free: 14.15 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.489e-05/0.8345, allocations: 51.81 kB / 424.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of pre-optimization done (n=161): time 5.641e-06/0.8345, allocations: 0 / 424.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of matching and sorting (n=164): time 0.02304/0.8576, allocations: 8.119 MB / 432.5 MB, free: 5.742 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/0.8577, allocations: 68.72 kB / 432.6 MB, free: 5.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004356/0.8621, allocations: 2.155 MB / 434.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003205/0.8624, allocations: 53.7 kB / 434.8 MB, free: 3.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001272/0.8637, allocations: 1.619 MB / 436.4 MB, free: 1.781 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005713/0.8643, allocations: 0.5493 MB / 437 MB, free: 1.234 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007442/0.865, allocations: 359.2 kB / 437.3 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.5e-05/0.8651, allocations: 305.1 kB / 437.6 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002154/0.8673, allocations: 0.9447 MB / 438.6 MB, free: 15.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003023/0.8703, allocations: 1.453 MB / 440 MB, free: 13.96 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005543/0.8759, allocations: 2.51 MB / 442.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.78e-05/0.8759, allocations: 7.938 kB / 442.5 MB, free: 11.24 MB / 334.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.009203/0.8851, allocations: 3.341 MB / 445.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.109e-05/0.8853, allocations: 12 kB / 445.9 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.904e-05/0.8853, allocations: 19.94 kB / 445.9 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002746/0.8881, allocations: 0.7381 MB / 446.6 MB, free: 7.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002292/0.8904, allocations: 375.4 kB / 447 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01861/0.909, allocations: 11.36 MB / 458.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003036/0.9121, allocations: 95.94 kB / 458.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000348/0.9125, allocations: 80.38 kB / 458.5 MB, free: 10.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,8,100.0%), (9,19,33.3%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003517/0.916, allocations: 1.208 MB / 459.7 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008618/0.9169, allocations: 229.2 kB / 460 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008244/0.9252, allocations: 3.166 MB / 463.1 MB, free: 5.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/0.9252, allocations: 16 kB / 463.2 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.771e-05/0.9253, allocations: 12 kB / 463.2 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3e-05/0.9253, allocations: 11.91 kB / 463.2 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0174/0.9427, allocations: 6.566 MB / 469.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.399e-05/0.9428, allocations: 4 kB / 469.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00139/0.9442, allocations: 171.8 kB / 469.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003562/0.9478, allocations: 0.921 MB / 470.8 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003033/0.9482, allocations: 39.98 kB / 470.9 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02741/0.9756, allocations: 16.19 MB / 487.1 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-05/0.9757, allocations: 4.031 kB / 487.1 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01265/0.9883, allocations: 4.507 MB / 491.6 MB, free: 8.508 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002826/0.9912, allocations: 0.5139 MB / 492.1 MB, free: 7.973 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009044/0.9922, allocations: 43.98 kB / 492.1 MB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001659/0.9939, allocations: 71.94 kB / 492.2 MB, free: 7.859 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008257/0.9947, allocations: 165 kB / 492.4 MB, free: 7.695 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001662/0.9949, allocations: 55.98 kB / 492.4 MB, free: 7.641 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.004348/0.9992, allocations: 1.481 MB / 493.9 MB, free: 6.141 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.9993, allocations: 0 / 493.9 MB, free: 6.141 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.005421/1.005, allocations: 0.7031 MB / 494.6 MB, free: 5.438 MB / 382.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.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,8,100.0%), (9,19,33.3%), (1,13,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.01222/1.017, allocations: 5.135 MB / 499.7 MB, free: 212 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01099/1.028, allocations: 3.708 MB / 0.4916 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.355e-05/1.028, allocations: 0.8125 kB / 0.4916 GB, free: 12.45 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005739/1.034, allocations: 2.268 MB / 0.4939 GB, free: 10.1 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005327/1.039, allocations: 0.635 MB / 0.4945 GB, free: 9.465 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07986/1.119, allocations: 27.98 MB / 0.5218 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004834/1.124, allocations: 2.682 MB / 0.5244 GB, free: 8.719 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003454/1.128, allocations: 475.4 kB / 0.5249 GB, free: 8.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003047/1.131, allocations: 1.323 MB / 0.5262 GB, free: 6.926 MB / 430.1 MB Notification: Performance of SimCode: time 1.663e-06/1.131, allocations: 0 / 0.5262 GB, free: 6.926 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5339/1.665, allocations: 64.61 MB / 0.5893 GB, free: 107.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.3/18.97, allocations: 10.88 kB / 0.5893 GB, free: 107.4 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_res.csv --start-time 0 --stop-time 2.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_YD.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_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_YD/AIMC_YD.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches