Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_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.001544/0.001544, allocations: 109 kB / 17.05 MB, free: 6.059 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.001859/0.001859, allocations: 195.9 kB / 17.99 MB, free: 5.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.303/1.303, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001059/0.001059, allocations: 43.94 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2709, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL): time 0.0106/0.2815, allocations: 9.389 MB / 409.6 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005556/0.2871, allocations: 2.964 MB / 412.6 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001311/0.2884, allocations: 47.81 kB / 412.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.2903, allocations: 0.6707 MB / 413.3 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002442/0.2928, allocations: 0.8039 MB / 414.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008776/0.2937, allocations: 347.5 kB / 414.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002987/0.2967, allocations: 2.661 MB / 417.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002641/0.2994, allocations: 2.155 MB / 419.3 MB, free: 5.645 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00194/0.3013, allocations: 1.195 MB / 420.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002242/0.3036, allocations: 1.487 MB / 421.9 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006323/0.3042, allocations: 312 kB / 422.3 MB, free: 2.648 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009926/0.3052, allocations: 391.8 kB / 422.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009826/0.3062, allocations: 0.8882 MB / 423.5 MB, free: 1.375 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001774/0.308, allocations: 1.408 MB / 424.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004012/0.312, allocations: 4.091 MB / 429 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.312, allocations: 7.938 kB / 429 MB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3121, allocations: 0 / 429 MB, free: 11.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.206e-05/0.3121, allocations: 0 / 429 MB, free: 11.84 MB / 350.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.005401/0.3176, allocations: 2.921 MB / 431.9 MB, free: 8.855 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.3176, allocations: 8.031 kB / 432 MB, free: 8.848 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003431/0.318, allocations: 295.5 kB / 432.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000682/0.3186, allocations: 303.2 kB / 432.5 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002589/0.3212, allocations: 1.536 MB / 434.1 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001135/0.3214, allocations: 152.4 kB / 434.2 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000301/0.3217, allocations: 207.9 kB / 434.4 MB, free: 6.301 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004158/0.3258, allocations: 2.736 MB / 437.2 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.523e-05/0.3259, allocations: 7.953 kB / 437.2 MB, free: 3.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000179/0.3261, allocations: 87.94 kB / 437.3 MB, free: 3.383 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.775e-05/0.3262, allocations: 91.94 kB / 437.3 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003984/0.3302, allocations: 2.326 MB / 439.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01338/0.3436, allocations: 8.339 MB / 448 MB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002165/0.3458, allocations: 1.785 MB / 449.8 MB, free: 6.484 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001933/0.3478, allocations: 1.077 MB / 450.9 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002775/0.3481, allocations: 122.1 kB / 451 MB, free: 5.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.854e-05/0.3481, allocations: 47.56 kB / 451 MB, free: 5.215 MB / 366.1 MB Notification: Performance of pre-optimization done (n=104): time 4.819e-06/0.3482, allocations: 3.984 kB / 451 MB, free: 5.211 MB / 366.1 MB Notification: Performance of matching and sorting (n=120): time 0.01317/0.3613, allocations: 6.234 MB / 457.3 MB, free: 14.87 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.611e-05/0.3614, allocations: 68.34 kB / 457.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002176/0.3636, allocations: 1.52 MB / 458.9 MB, free: 13.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.3637, allocations: 49.7 kB / 458.9 MB, free: 13.2 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008573/0.3646, allocations: 1.002 MB / 459.9 MB, free: 12.19 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003805/0.365, allocations: 440.2 kB / 460.3 MB, free: 11.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004015/0.3654, allocations: 259.5 kB / 460.6 MB, free: 11.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.3655, allocations: 357.9 kB / 460.9 MB, free: 11.14 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.3667, allocations: 0.7339 MB / 461.7 MB, free: 10.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.3681, allocations: 1.055 MB / 462.7 MB, free: 9.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002514/0.3706, allocations: 1.871 MB / 464.6 MB, free: 7.223 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.795e-06/0.3706, allocations: 4 kB / 464.6 MB, free: 7.219 MB / 382.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.00414/0.3748, allocations: 2.358 MB / 467 MB, free: 4.84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.377e-05/0.3748, allocations: 12 kB / 467 MB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.942e-05/0.3749, allocations: 8 kB / 467 MB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009366/0.3758, allocations: 415.4 kB / 467.4 MB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/0.377, allocations: 327.5 kB / 467.7 MB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005306/0.3824, allocations: 5.069 MB / 472.8 MB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.3837, allocations: 91.83 kB / 472.9 MB, free: 14.64 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/0.3839, allocations: 52 kB / 472.9 MB, free: 14.59 MB / 398.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.001117/0.385, allocations: 0.7082 MB / 473.6 MB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00029/0.3853, allocations: 170.9 kB / 473.8 MB, free: 13.71 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003512/0.3888, allocations: 2.137 MB / 475.9 MB, free: 11.54 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/0.3888, allocations: 12 kB / 475.9 MB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.3889, allocations: 7.984 kB / 476 MB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.286e-05/0.3889, allocations: 7.969 kB / 476 MB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007369/0.3962, allocations: 4.562 MB / 480.5 MB, free: 6.859 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.236e-06/0.3963, allocations: 4 kB / 480.5 MB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009531/0.3972, allocations: 223.7 kB / 480.7 MB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001209/0.3985, allocations: 473.7 kB / 481.2 MB, free: 6.164 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.252e-05/0.3986, allocations: 31.98 kB / 481.2 MB, free: 6.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006539/0.4051, allocations: 6.677 MB / 487.9 MB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/0.4052, allocations: 8 kB / 487.9 MB, free: 15.03 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004977/0.4101, allocations: 3.181 MB / 491.1 MB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009335/0.4111, allocations: 407.9 kB / 491.5 MB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002222/0.4113, allocations: 24 kB / 491.5 MB, free: 11.34 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008189/0.4121, allocations: 79.91 kB / 491.6 MB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002421/0.4124, allocations: 112.7 kB / 491.7 MB, free: 11.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.874e-05/0.4125, allocations: 32 kB / 491.8 MB, free: 11.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001462/0.414, allocations: 1.052 MB / 492.8 MB, free: 10.07 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.414, allocations: 0 / 492.8 MB, free: 10.07 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001492/0.4155, allocations: 459.9 kB / 493.3 MB, free: 9.625 MB / 414.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.005137/0.4206, allocations: 3.834 MB / 497.1 MB, free: 5.723 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003632/0.4243, allocations: 2.274 MB / 499.4 MB, free: 3.379 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.4243, allocations: 4 kB / 499.4 MB, free: 3.375 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002227/0.4265, allocations: 1.488 MB / 0.4891 GB, free: 1.824 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002106/0.4286, allocations: 440.1 kB / 0.4895 GB, free: 1.398 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02497/0.4536, allocations: 17.43 MB / 0.5066 GB, free: 15.39 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001534/0.4552, allocations: 1.819 MB / 0.5083 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001139/0.4563, allocations: 397.5 kB / 0.5087 GB, free: 13.15 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001048/0.4574, allocations: 0.8 MB / 0.5095 GB, free: 12.35 MB / 446.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4574, allocations: 0 / 0.5095 GB, free: 12.35 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2996/0.757, allocations: 43.21 MB / 0.5517 GB, free: 129.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.27/20.03, allocations: 12.48 kB / 0.5517 GB, free: 129.1 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_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_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_DOL/IMC_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches