Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.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_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_withLosses",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.001611/0.001611, allocations: 100.4 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.001766/0.001767, 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.771/2.771, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002231/0.002231, allocations: 51.94 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1659/0.1681, allocations: 46.62 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.0254/0.1936, allocations: 13.57 MB / 341 MB, free: 6.734 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01665/0.2103, allocations: 4.868 MB / 345.8 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005656/0.2161, allocations: 67.75 kB / 345.9 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006066/0.2223, allocations: 1.037 MB / 346.9 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009613/0.2319, allocations: 1.394 MB / 348.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0049/0.2369, allocations: 0.9703 MB / 349.3 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01068/0.2476, allocations: 4.305 MB / 353.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006923/0.2545, allocations: 3.3 MB / 356.9 MB, free: 6.672 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005088/0.2597, allocations: 1.994 MB / 358.9 MB, free: 4.672 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006197/0.2659, allocations: 2.316 MB / 361.2 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002206/0.2682, allocations: 0.5312 MB / 361.7 MB, free: 1.816 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004288/0.2725, allocations: 0.9135 MB / 362.7 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002431/0.275, allocations: 1.324 MB / 364 MB, free: 15.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007153/0.2821, allocations: 2.345 MB / 366.3 MB, free: 13.22 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01654/0.2988, allocations: 7.283 MB / 373.6 MB, free: 5.914 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.961e-05/0.2989, allocations: 3.938 kB / 373.6 MB, free: 5.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.053e-05/0.2989, allocations: 0 / 373.6 MB, free: 5.91 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004574/0.2994, allocations: 3.938 kB / 373.6 MB, free: 5.906 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: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.02857/0.328, allocations: 4.977 MB / 378.6 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.396e-05/0.3281, allocations: 12.03 kB / 378.6 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003438/0.3316, allocations: 0.5266 MB / 379.1 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.388/0.7196, allocations: 0.8807 MB / 380 MB, free: 48.85 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01374/0.7334, allocations: 2.61 MB / 382.6 MB, free: 47.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006237/0.7341, allocations: 257.5 kB / 382.9 MB, free: 47.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002537/0.7367, allocations: 339.8 kB / 383.2 MB, free: 47.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02588/0.7626, allocations: 4.581 MB / 387.8 MB, free: 45.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005375/0.7632, allocations: 9.734 kB / 387.8 MB, free: 45.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002978/0.7663, allocations: 139 kB / 387.9 MB, free: 45.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008486/0.7672, allocations: 152.8 kB / 388.1 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01971/0.7869, allocations: 3.928 MB / 392 MB, free: 44.21 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04927/0.8363, allocations: 14.25 MB / 406.3 MB, free: 34.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01163/0.848, allocations: 6.978 MB / 413.2 MB, free: 26.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004941/0.853, allocations: 1.683 MB / 414.9 MB, free: 24.82 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/0.8663, allocations: 4.254 MB / 419.2 MB, free: 20.54 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.057e-05/0.8665, allocations: 51.81 kB / 419.2 MB, free: 20.48 MB / 318.1 MB Notification: Performance of pre-optimization done (n=165): time 6.973e-06/0.8665, allocations: 0 / 419.2 MB, free: 20.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=185): time 0.03083/0.8973, allocations: 7.836 MB / 427.1 MB, free: 12.51 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.571e-05/0.8975, allocations: 73.41 kB / 427.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007717/0.9052, allocations: 2.623 MB / 429.7 MB, free: 9.781 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006142/0.9059, allocations: 57.7 kB / 429.8 MB, free: 9.719 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001599/0.9075, allocations: 1.626 MB / 431.4 MB, free: 8.074 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001001/0.9086, allocations: 0.6258 MB / 432.1 MB, free: 7.453 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001378/0.91, allocations: 335.4 kB / 432.4 MB, free: 7.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.71e-05/0.9101, allocations: 301.1 kB / 432.7 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002433/0.9125, allocations: 0.9058 MB / 433.6 MB, free: 5.914 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002625/0.9152, allocations: 1.306 MB / 434.9 MB, free: 4.457 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00523/0.9204, allocations: 2.354 MB / 437.2 MB, free: 1.961 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-05/0.9205, allocations: 8 kB / 437.3 MB, free: 1.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.01002/0.9305, allocations: 3.069 MB / 440.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.572e-05/0.9307, allocations: 12.25 kB / 440.3 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.321e-05/0.9308, allocations: 15.94 kB / 440.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003194/0.934, allocations: 0.5555 MB / 440.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003819/0.9379, allocations: 443.3 kB / 441.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01916/0.9571, allocations: 7.577 MB / 448.9 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003845/0.961, allocations: 87.84 kB / 449 MB, free: 5.918 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000794/0.9619, allocations: 75.98 kB / 449.1 MB, free: 5.844 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (198): * Single equations (assignments): 194 * Array equations: 2 * 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,6,100.0%), (8,33,56.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005403/0.9673, allocations: 1.165 MB / 450.2 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001656/0.969, allocations: 257 kB / 450.5 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01108/0.9801, allocations: 2.889 MB / 453.4 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-05/0.9802, allocations: 20 kB / 453.4 MB, free: 1.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.502e-05/0.9803, allocations: 8 kB / 453.4 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-05/0.9804, allocations: 7.969 kB / 453.4 MB, free: 1.473 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02135/1.002, allocations: 6.355 MB / 459.8 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.667e-05/1.002, allocations: 4 kB / 459.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002242/1.004, allocations: 275.6 kB / 460 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00305/1.007, allocations: 0.6335 MB / 460.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003852/1.008, allocations: 43.97 kB / 460.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0221/1.03, allocations: 11.45 MB / 472.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/1.03, allocations: 0 / 472.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01443/1.044, allocations: 4.157 MB / 476.3 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002584/1.047, allocations: 0.5369 MB / 476.9 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001221/1.048, allocations: 40 kB / 476.9 MB, free: 9.324 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002804/1.051, allocations: 87.92 kB / 477 MB, free: 9.238 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007284/1.052, allocations: 133.7 kB / 477.1 MB, free: 9.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002899/1.052, allocations: 51.98 kB / 477.2 MB, free: 9.055 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.005828/1.058, allocations: 1.846 MB / 479 MB, free: 7.195 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.62e-07/1.058, allocations: 4 kB / 479 MB, free: 7.191 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.005452/1.063, allocations: 0.6888 MB / 479.7 MB, free: 6.508 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (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,PI.x) * 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 (126): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,12,100.0%), (1,6,100.0%), (1,12,100.0%), (2,25,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01491/1.078, allocations: 5.074 MB / 484.8 MB, free: 1.402 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.01363/1.092, allocations: 3.458 MB / 488.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.064e-05/1.092, allocations: 0 / 488.2 MB, free: 13.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005214/1.097, allocations: 1.934 MB / 490.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005837/1.103, allocations: 0.5776 MB / 490.7 MB, free: 11.37 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09418/1.197, allocations: 30.17 MB / 0.5087 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006057/1.204, allocations: 2.636 MB / 0.5113 GB, free: 8.215 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003261/1.207, allocations: 0.5005 MB / 0.5118 GB, free: 7.711 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00339/1.21, allocations: 1.429 MB / 0.5132 GB, free: 6.281 MB / 414.1 MB Notification: Performance of SimCode: time 1.653e-06/1.21, allocations: 0 / 0.5132 GB, free: 6.281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5475/1.758, allocations: 65.19 MB / 0.5768 GB, free: 120.3 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.96/19.72, allocations: 7.812 kB / 0.5768 GB, free: 120.3 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_res.csv --start-time 0 --stop-time 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_withLosses.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses_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_withLosses/AIMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches