Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_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.001358/0.001358, 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.001212/0.001212, 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 1.544/1.544, 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.001364/0.001364, allocations: 56.39 kB / 280.8 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1054, allocations: 46.64 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses): time 0.01359/0.1191, allocations: 9.615 MB / 337 MB, free: 10.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008119/0.1272, allocations: 3.464 MB / 340.5 MB, free: 7.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002142/0.1294, allocations: 39.81 kB / 340.5 MB, free: 7.191 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00228/0.1318, allocations: 0.6715 MB / 341.2 MB, free: 6.516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003363/0.1352, allocations: 0.8271 MB / 342 MB, free: 5.684 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001556/0.1367, allocations: 455.2 kB / 342.5 MB, free: 5.238 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004356/0.1411, allocations: 2.666 MB / 345.1 MB, free: 2.559 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002878/0.144, allocations: 1.818 MB / 346.9 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002076/0.1461, allocations: 1.187 MB / 348.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003377/0.1495, allocations: 1.545 MB / 349.7 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001261/0.1508, allocations: 312 kB / 350 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001828/0.1526, allocations: 0.5503 MB / 350.5 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001732/0.1544, allocations: 0.9816 MB / 351.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003239/0.1576, allocations: 1.485 MB / 353 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004781/0.1624, allocations: 4.229 MB / 357.2 MB, free: 6.379 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1625, allocations: 0 / 357.2 MB, free: 6.379 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1625, allocations: 0 / 357.2 MB, free: 6.379 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.492e-05/0.1625, allocations: 0 / 357.2 MB, free: 6.379 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.005596/0.1681, allocations: 3.157 MB / 360.4 MB, free: 3.152 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.892e-05/0.1682, allocations: 8.031 kB / 360.4 MB, free: 3.145 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004963/0.1687, allocations: 355.3 kB / 360.7 MB, free: 2.781 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000812/0.1695, allocations: 325.2 kB / 361 MB, free: 2.461 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00277/0.1723, allocations: 1.619 MB / 362.7 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/0.1725, allocations: 152.1 kB / 362.8 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003292/0.1728, allocations: 211.9 kB / 363 MB, free: 440 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00476/0.1776, allocations: 2.727 MB / 365.8 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.402e-05/0.1777, allocations: 7.969 kB / 365.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001977/0.1779, allocations: 84 kB / 365.8 MB, free: 13.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001302/0.178, allocations: 96.05 kB / 365.9 MB, free: 13.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004271/0.1823, allocations: 2.299 MB / 368.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01433/0.1966, allocations: 8.299 MB / 376.5 MB, free: 2.598 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00302/0.1997, allocations: 1.632 MB / 378.2 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.163/0.3628, allocations: 1.083 MB / 379.2 MB, free: 51.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000333/0.3632, allocations: 126.5 kB / 379.4 MB, free: 51.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.3632, allocations: 43.88 kB / 379.4 MB, free: 51.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=116): time 3.787e-06/0.3632, allocations: 3.094 kB / 379.4 MB, free: 51.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=132): time 0.01382/0.377, allocations: 6.206 MB / 385.6 MB, free: 49.65 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.085e-05/0.3771, allocations: 73.31 kB / 385.7 MB, free: 49.58 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003301/0.3804, allocations: 2.155 MB / 387.8 MB, free: 48.81 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001517/0.3806, allocations: 51.44 kB / 387.9 MB, free: 48.76 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007412/0.3813, allocations: 1.124 MB / 389 MB, free: 47.9 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003812/0.3817, allocations: 455 kB / 389.5 MB, free: 47.55 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004439/0.3822, allocations: 244 kB / 389.7 MB, free: 47.44 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.3823, allocations: 360.3 kB / 390.1 MB, free: 47.11 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.3836, allocations: 0.759 MB / 390.8 MB, free: 46.85 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001312/0.3849, allocations: 1.011 MB / 391.8 MB, free: 46.31 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002462/0.3874, allocations: 1.865 MB / 393.7 MB, free: 45.38 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.3874, allocations: 2.75 kB / 393.7 MB, free: 45.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.004723/0.3922, allocations: 2.764 MB / 396.5 MB, free: 44.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.3922, allocations: 7.844 kB / 396.5 MB, free: 44.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.512e-05/0.3922, allocations: 7.875 kB / 396.5 MB, free: 44.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001841/0.3941, allocations: 0.7823 MB / 397.3 MB, free: 44.13 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001075/0.3952, allocations: 275.4 kB / 397.5 MB, free: 44.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009147/0.4043, allocations: 9.605 MB / 407.1 MB, free: 35.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.4057, allocations: 91.89 kB / 407.2 MB, free: 35.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001228/0.4059, allocations: 47.98 kB / 407.3 MB, free: 35.43 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (126): * Single equations (assignments): 122 * 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%), (6,33,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001113/0.407, allocations: 0.7511 MB / 408 MB, free: 34.67 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003391/0.4073, allocations: 193.6 kB / 408.2 MB, free: 34.48 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003889/0.4112, allocations: 2.492 MB / 410.7 MB, free: 31.97 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.369e-05/0.4113, allocations: 23.83 kB / 410.7 MB, free: 31.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/0.4113, allocations: 8 kB / 410.7 MB, free: 31.94 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.383e-05/0.4113, allocations: 15.56 kB / 410.7 MB, free: 31.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007161/0.4185, allocations: 4.957 MB / 415.7 MB, free: 26.92 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.063e-06/0.4185, allocations: 0 / 415.7 MB, free: 26.92 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009519/0.4195, allocations: 215.6 kB / 415.9 MB, free: 26.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001467/0.4209, allocations: 0.6557 MB / 416.6 MB, free: 26.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.614e-05/0.421, allocations: 39.97 kB / 416.6 MB, free: 26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00666/0.4277, allocations: 8.698 MB / 425.3 MB, free: 16.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.4277, allocations: 4.031 kB / 425.3 MB, free: 16.92 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00494/0.4327, allocations: 3.533 MB / 428.8 MB, free: 13.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007333/0.4334, allocations: 438.5 kB / 429.3 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002411/0.4337, allocations: 33.95 kB / 429.3 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009085/0.4346, allocations: 79.91 kB / 429.4 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002724/0.4349, allocations: 112.7 kB / 429.5 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.503e-05/0.435, allocations: 39.66 kB / 429.5 MB, free: 12.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001606/0.4366, allocations: 1.523 MB / 431.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4366, allocations: 0 / 431.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001615/0.4382, allocations: 0.5285 MB / 431.6 MB, free: 10.57 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],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 (97): * Single equations (assignments): 91 * Array equations: 2 * 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 {(2,12,100.0%), (1,6,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005742/0.444, allocations: 4.457 MB / 436 MB, free: 6.094 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004868/0.4489, allocations: 2.862 MB / 438.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/0.4489, allocations: 0.875 kB / 438.9 MB, free: 3.219 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002121/0.451, allocations: 1.608 MB / 440.5 MB, free: 1.555 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002305/0.4533, allocations: 454.1 kB / 441 MB, free: 1.105 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03394/0.4873, allocations: 23.62 MB / 464.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001634/0.489, allocations: 1.955 MB / 466.5 MB, free: 5.961 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001287/0.4903, allocations: 399.6 kB / 466.9 MB, free: 5.566 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001216/0.4915, allocations: 0.9796 MB / 467.9 MB, free: 4.586 MB / 350.1 MB Notification: Performance of SimCode: time 1.803e-06/0.4915, allocations: 0 / 467.9 MB, free: 4.586 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09999/0.5915, allocations: 50.2 MB / 0.506 GB, free: 2.25 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/11.16, allocations: 8.188 kB / 0.506 GB, free: 2.242 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.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_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/AsynchronousInductionMachines/AIMC_withLosses/AIMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches