Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.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_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_DOL",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.001148/0.001148, allocations: 104.2 kB / 17.58 MB, free: 5.559 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.001145/0.001145, allocations: 192 kB / 18.51 MB, free: 4.641 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.334/1.334, 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.001233/0.001233, allocations: 59.92 kB / 280.8 MB, free: 3.066 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08522/0.08647, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL): time 0.01062/0.09713, allocations: 9.342 MB / 336.7 MB, free: 10.98 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00506/0.1022, allocations: 3.019 MB / 339.8 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007204/0.103, allocations: 39.81 kB / 339.8 MB, free: 7.902 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001414/0.1044, allocations: 0.6327 MB / 340.4 MB, free: 7.266 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001714/0.1061, allocations: 0.7649 MB / 341.2 MB, free: 6.496 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006474/0.1068, allocations: 355.5 kB / 341.5 MB, free: 6.148 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002412/0.1092, allocations: 2.692 MB / 344.2 MB, free: 3.441 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001989/0.1112, allocations: 1.896 MB / 346.1 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001389/0.1126, allocations: 1.191 MB / 347.3 MB, free: 300 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001739/0.1144, allocations: 1.483 MB / 348.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004183/0.1148, allocations: 308 kB / 349.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006842/0.1155, allocations: 395.8 kB / 349.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008199/0.1163, allocations: 0.896 MB / 350.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001379/0.1177, allocations: 1.404 MB / 351.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003177/0.1209, allocations: 4.038 MB / 355.8 MB, free: 7.758 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1209, allocations: 0 / 355.8 MB, free: 7.758 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.1209, allocations: 0 / 355.8 MB, free: 7.758 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.468e-05/0.121, allocations: 4 kB / 355.8 MB, free: 7.754 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.005103/0.1261, allocations: 2.845 MB / 358.7 MB, free: 4.844 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.1262, allocations: 12.03 kB / 358.7 MB, free: 4.832 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003676/0.1265, allocations: 299.4 kB / 359 MB, free: 4.527 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007224/0.1273, allocations: 285.7 kB / 359.3 MB, free: 4.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002276/0.1296, allocations: 1.438 MB / 360.7 MB, free: 2.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.1297, allocations: 148.4 kB / 360.8 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002825/0.13, allocations: 203.8 kB / 361 MB, free: 2.402 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004158/0.1342, allocations: 2.74 MB / 363.8 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.72e-05/0.1342, allocations: 0 / 363.8 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001961/0.1344, allocations: 91.98 kB / 363.9 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.683e-05/0.1345, allocations: 91.94 kB / 364 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003948/0.1385, allocations: 2.322 MB / 366.3 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01303/0.1515, allocations: 8.411 MB / 374.7 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002199/0.1538, allocations: 1.768 MB / 376.5 MB, free: 2.539 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001877/0.1557, allocations: 1.077 MB / 377.5 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002537/0.1559, allocations: 114.1 kB / 377.6 MB, free: 1.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.736e-05/0.156, allocations: 47.56 kB / 377.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of pre-optimization done (n=104): time 3.507e-06/0.156, allocations: 0 / 377.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of matching and sorting (n=120): time 0.165/0.321, allocations: 6.292 MB / 384 MB, free: 50.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/0.3211, allocations: 68.08 kB / 384.1 MB, free: 50.34 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002214/0.3233, allocations: 1.517 MB / 385.6 MB, free: 49.77 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001091/0.3235, allocations: 46.36 kB / 385.6 MB, free: 49.72 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006202/0.3241, allocations: 0.9891 MB / 386.6 MB, free: 48.96 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002906/0.3244, allocations: 415.9 kB / 387 MB, free: 48.64 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003859/0.3248, allocations: 254.1 kB / 387.3 MB, free: 48.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.583e-05/0.3249, allocations: 358.2 kB / 387.6 MB, free: 48.2 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.3261, allocations: 0.7378 MB / 388.3 MB, free: 47.95 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001388/0.3275, allocations: 1.053 MB / 389.4 MB, free: 47.33 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002378/0.3299, allocations: 1.874 MB / 391.3 MB, free: 46.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.724e-06/0.3299, allocations: 2.938 kB / 391.3 MB, free: 46.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00387/0.3338, allocations: 2.352 MB / 393.6 MB, free: 45.4 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.706e-05/0.3338, allocations: 9.625 kB / 393.6 MB, free: 45.4 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.3338, allocations: 13.56 kB / 393.6 MB, free: 45.4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008692/0.3347, allocations: 411.6 kB / 394.1 MB, free: 45.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.3359, allocations: 333 kB / 394.4 MB, free: 45.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00398/0.3399, allocations: 5.067 MB / 399.4 MB, free: 41.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/0.3411, allocations: 93.56 kB / 399.5 MB, free: 41.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.335e-05/0.3412, allocations: 57.08 kB / 399.6 MB, free: 41.35 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 3 (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 (156): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001058/0.3423, allocations: 0.7057 MB / 400.3 MB, free: 40.87 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002463/0.3425, allocations: 163.8 kB / 400.5 MB, free: 40.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002988/0.3455, allocations: 2.137 MB / 402.6 MB, free: 39.58 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.3455, allocations: 15.25 kB / 402.6 MB, free: 39.58 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.3456, allocations: 3.781 kB / 402.6 MB, free: 39.58 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.134e-05/0.3456, allocations: 3.984 kB / 402.6 MB, free: 39.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00597/0.3516, allocations: 4.593 MB / 407.2 MB, free: 35.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.3516, allocations: 0 / 407.2 MB, free: 35.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000905/0.3525, allocations: 215.7 kB / 407.4 MB, free: 35.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001033/0.3536, allocations: 481 kB / 407.9 MB, free: 34.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.786e-05/0.3536, allocations: 31.97 kB / 407.9 MB, free: 34.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004658/0.3583, allocations: 6.678 MB / 414.6 MB, free: 27.58 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.3583, allocations: 4 kB / 414.6 MB, free: 27.57 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00418/0.3625, allocations: 3.184 MB / 417.8 MB, free: 24.34 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008323/0.3634, allocations: 406.9 kB / 418.2 MB, free: 23.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002202/0.3636, allocations: 28 kB / 418.2 MB, free: 23.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008113/0.3644, allocations: 79.91 kB / 418.3 MB, free: 23.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002396/0.3647, allocations: 104.5 kB / 418.4 MB, free: 23.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.51e-05/0.3648, allocations: 31.98 kB / 418.4 MB, free: 23.69 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001223/0.366, allocations: 1.044 MB / 419.5 MB, free: 22.64 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.366, allocations: 4 kB / 419.5 MB, free: 22.64 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001409/0.3674, allocations: 464 kB / 419.9 MB, free: 22.19 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],quadraticLoadTorque.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 100 * Array equations: 0 * 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,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004291/0.3717, allocations: 3.813 MB / 423.7 MB, free: 18.31 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005451/0.3772, allocations: 2.831 MB / 426.6 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.3772, allocations: 0 / 426.6 MB, free: 15.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002422/0.3796, allocations: 1.485 MB / 428.1 MB, free: 13.88 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00238/0.382, allocations: 457.4 kB / 428.5 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03392/0.416, allocations: 19 MB / 447.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002235/0.4183, allocations: 1.823 MB / 449.3 MB, free: 7.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001738/0.42, allocations: 393.5 kB / 449.7 MB, free: 7.094 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001464/0.4215, allocations: 0.7961 MB / 450.5 MB, free: 6.297 MB / 334.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4215, allocations: 0 / 450.5 MB, free: 6.297 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0862/0.5077, allocations: 42.43 MB / 492.9 MB, free: 11.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.84, allocations: 20.08 kB / 493 MB, free: 11.71 MB / 382.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_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_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_DOL.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_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_DOL/AIMC_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches