Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.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_Steinmetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Steinmetz",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.001545/0.001544, allocations: 107 kB / 16.92 MB, free: 5.691 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.001823/0.001823, allocations: 190.1 kB / 17.85 MB, free: 5.176 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.433/1.433, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001198, allocations: 52.5 kB / 300.7 MB, free: 5.793 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0926/0.09381, allocations: 49.44 MB / 350.2 MB, free: 4.344 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz): time 0.01113/0.105, allocations: 9.681 MB / 359.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005805/0.1108, allocations: 3.03 MB / 362.9 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001238/0.1121, allocations: 47.81 kB / 362.9 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001906/0.1141, allocations: 0.6248 MB / 363.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002369/0.1165, allocations: 0.7374 MB / 364.3 MB, free: 6.148 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001031/0.1176, allocations: 383.4 kB / 364.7 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002781/0.1204, allocations: 2.419 MB / 367.1 MB, free: 3.344 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002124/0.1225, allocations: 1.747 MB / 368.8 MB, free: 1.551 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001381/0.1239, allocations: 1.071 MB / 369.9 MB, free: 488 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.164/0.2879, allocations: 1.308 MB / 371.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007755/0.2887, allocations: 278.2 kB / 371.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009725/0.2897, allocations: 366.7 kB / 371.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007095/0.2904, allocations: 0.7722 MB / 372.6 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001301/0.2917, allocations: 1.269 MB / 373.9 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003791/0.2955, allocations: 3.6 MB / 377.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.2955, allocations: 3.219 kB / 377.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2956, allocations: 0 / 377.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001164/0.2957, allocations: 0 / 377.5 MB, free: 12.12 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: 491 * Number of variables: 491 Notification: Performance of Generate backend data structure: time 0.005979/0.3017, allocations: 2.58 MB / 380.1 MB, free: 11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.3017, allocations: 10.69 kB / 380.1 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003675/0.3021, allocations: 276.5 kB / 380.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006914/0.3028, allocations: 263 kB / 380.6 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002133/0.3049, allocations: 1.316 MB / 381.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/0.3051, allocations: 144.1 kB / 382.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003398/0.3054, allocations: 195.3 kB / 382.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004101/0.3095, allocations: 2.414 MB / 384.7 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.389e-05/0.3096, allocations: 10.88 kB / 384.7 MB, free: 8.961 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001797/0.3098, allocations: 80.94 kB / 384.7 MB, free: 8.898 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-05/0.3099, allocations: 91.81 kB / 384.8 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003551/0.3135, allocations: 1.955 MB / 386.8 MB, free: 8.195 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01162/0.3251, allocations: 7.848 MB / 394.6 MB, free: 2.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00146/0.3266, allocations: 1.239 MB / 395.9 MB, free: 1.855 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001448/0.3281, allocations: 0.9344 MB / 396.8 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002033/0.3283, allocations: 123.9 kB / 396.9 MB, free: 1.328 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.3283, allocations: 48.31 kB / 397 MB, free: 1.273 MB / 302.1 MB Notification: Performance of pre-optimization done (n=95): time 2.454e-06/0.3283, allocations: 1.219 kB / 397 MB, free: 1.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=111): time 0.01204/0.3404, allocations: 5.865 MB / 402.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.3405, allocations: 64.41 kB / 402.9 MB, free: 13.46 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001922/0.3424, allocations: 1.298 MB / 404.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001104/0.3425, allocations: 49.7 kB / 404.3 MB, free: 12.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005659/0.3431, allocations: 0.9297 MB / 405.2 MB, free: 11.16 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002773/0.3434, allocations: 393 kB / 405.6 MB, free: 10.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003741/0.3437, allocations: 246.7 kB / 405.8 MB, free: 10.54 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3439, allocations: 360.9 kB / 406.2 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001009/0.3449, allocations: 0.6364 MB / 406.8 MB, free: 9.551 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001148/0.3461, allocations: 1.003 MB / 407.8 MB, free: 8.398 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002152/0.3482, allocations: 1.729 MB / 409.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.3482, allocations: 4 kB / 409.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.003632/0.3519, allocations: 2.249 MB / 411.8 MB, free: 4.363 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.3519, allocations: 10.62 kB / 411.8 MB, free: 4.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.3519, allocations: 12.88 kB / 411.8 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.3531, allocations: 498.9 kB / 412.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001066/0.3542, allocations: 303.9 kB / 412.6 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006745/0.361, allocations: 7.133 MB / 419.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001213/0.3622, allocations: 83.83 kB / 419.8 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/0.3623, allocations: 63.02 kB / 419.9 MB, free: 11.91 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (147): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 3 systems {(2,12,100.0%), (2,8,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001086/0.3634, allocations: 0.6042 MB / 420.5 MB, free: 11.31 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003359/0.3638, allocations: 146.2 kB / 420.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004968/0.3688, allocations: 1.961 MB / 422.6 MB, free: 9.195 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.646e-05/0.3688, allocations: 12 kB / 422.6 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/0.3688, allocations: 4 kB / 422.6 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.881e-05/0.3689, allocations: 11.97 kB / 422.6 MB, free: 9.168 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/0.3811, allocations: 4.131 MB / 426.7 MB, free: 5.004 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/0.3811, allocations: 4.281 kB / 426.7 MB, free: 5 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001362/0.3825, allocations: 183.9 kB / 426.9 MB, free: 4.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002416/0.3849, allocations: 0.5374 MB / 427.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001504/0.3851, allocations: 31.98 kB / 427.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01272/0.3978, allocations: 8.771 MB / 436.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/0.3979, allocations: 4.031 kB / 436.3 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005417/0.4033, allocations: 2.859 MB / 439.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008248/0.4041, allocations: 355.4 kB / 439.5 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003738/0.4045, allocations: 31.98 kB / 439.5 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009979/0.4055, allocations: 67.86 kB / 439.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002358/0.4058, allocations: 92.48 kB / 439.7 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.71e-05/0.4059, allocations: 31.98 kB / 439.7 MB, free: 7.48 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001451/0.4073, allocations: 0.8878 MB / 440.6 MB, free: 6.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.4073, allocations: 0 / 440.6 MB, free: 6.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001803/0.4092, allocations: 440 kB / 441 MB, free: 6.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (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,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * 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 {(2,12,100.0%), (1,1,100.0%), (2,8,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.005168/0.4143, allocations: 3.482 MB / 444.5 MB, free: 2.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00439/0.4187, allocations: 2.568 MB / 447.1 MB, free: 44 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.4188, allocations: 256 / 447.1 MB, free: 44 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002276/0.4211, allocations: 1.514 MB / 448.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002544/0.4236, allocations: 412.8 kB / 449 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02939/0.453, allocations: 16.95 MB / 465.9 MB, free: 12.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00166/0.4547, allocations: 1.642 MB / 467.6 MB, free: 10.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001117/0.4559, allocations: 328.8 kB / 467.9 MB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001061/0.4569, allocations: 0.7141 MB / 468.6 MB, free: 9.551 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.457, allocations: 0 / 468.6 MB, free: 9.551 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08066/0.5376, allocations: 38.75 MB / 0.4955 GB, free: 3.277 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.86, allocations: 0 / 0.4955 GB, free: 3.277 MB / 414.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.csv --start-time 0 --stop-time 1 --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_Steinmetz.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Steinmetz/IMC_Steinmetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches