Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.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_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Initialize",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.001023/0.001023, allocations: 104.3 kB / 17.06 MB, free: 6.102 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.001258/0.001258, allocations: 196.1 kB / 18 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.282/1.282, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 51.92 kB / 350.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2235/0.2246, allocations: 49.44 MB / 400.3 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.009317/0.234, allocations: 8.892 MB / 409.1 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004642/0.2387, allocations: 2.866 MB / 412 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008212/0.2395, allocations: 43.81 kB / 412.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0013/0.2408, allocations: 0.6133 MB / 412.7 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001684/0.2425, allocations: 0.7183 MB / 413.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006003/0.2432, allocations: 319.5 kB / 413.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002164/0.2453, allocations: 2.368 MB / 416.1 MB, free: 8.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001739/0.2471, allocations: 1.762 MB / 417.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001151/0.2482, allocations: 1.059 MB / 418.9 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001434/0.2497, allocations: 1.343 MB / 420.2 MB, free: 4.707 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000313/0.25, allocations: 276 kB / 420.5 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005431/0.2506, allocations: 371.8 kB / 420.9 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000669/0.2512, allocations: 0.7947 MB / 421.7 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001104/0.2524, allocations: 1.26 MB / 422.9 MB, free: 2.012 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002874/0.2552, allocations: 3.684 MB / 426.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.2553, allocations: 0 / 426.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2553, allocations: 0 / 426.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.15e-05/0.2553, allocations: 0 / 426.6 MB, free: 14.32 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.004267/0.2596, allocations: 2.586 MB / 429.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.2596, allocations: 8.031 kB / 429.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003022/0.2599, allocations: 266 kB / 429.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006092/0.2606, allocations: 258.1 kB / 429.7 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00212/0.2627, allocations: 1.385 MB / 431.1 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.371e-05/0.2628, allocations: 136 kB / 431.2 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002574/0.2631, allocations: 191.8 kB / 431.4 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003431/0.2665, allocations: 2.402 MB / 433.8 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.818e-05/0.2666, allocations: 8 kB / 433.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000165/0.2667, allocations: 83.97 kB / 433.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.013e-05/0.2668, allocations: 87.44 kB / 434 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003104/0.2699, allocations: 2.012 MB / 436 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01022/0.2802, allocations: 7.374 MB / 443.4 MB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00177/0.282, allocations: 1.261 MB / 444.6 MB, free: 11.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001602/0.2836, allocations: 0.9119 MB / 445.5 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002149/0.2838, allocations: 126.1 kB / 445.7 MB, free: 10.78 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.275e-05/0.2839, allocations: 43.56 kB / 445.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of pre-optimization done (n=84): time 3.497e-06/0.2839, allocations: 0 / 445.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=100): time 0.008809/0.2927, allocations: 4.896 MB / 450.6 MB, free: 5.738 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.2927, allocations: 68.41 kB / 450.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001989/0.2947, allocations: 1.372 MB / 452 MB, free: 4.277 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.41e-05/0.2948, allocations: 41.7 kB / 452.1 MB, free: 4.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006245/0.2955, allocations: 0.9047 MB / 453 MB, free: 3.312 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002874/0.2958, allocations: 347 kB / 453.3 MB, free: 2.969 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003593/0.2961, allocations: 214.8 kB / 453.5 MB, free: 2.754 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.2963, allocations: 353.9 kB / 453.9 MB, free: 2.402 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.2974, allocations: 0.635 MB / 454.5 MB, free: 1.766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.2986, allocations: 0.922 MB / 455.4 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002232/0.3008, allocations: 1.645 MB / 457.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.959e-06/0.3008, allocations: 4 kB / 457.1 MB, free: 14.95 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004224/0.3051, allocations: 2.394 MB / 459.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.3051, allocations: 8 kB / 459.5 MB, free: 12.53 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.01e-05/0.3051, allocations: 12 kB / 459.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001781/0.3069, allocations: 0.7043 MB / 460.2 MB, free: 11.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008456/0.3078, allocations: 235.7 kB / 460.4 MB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01031/0.3181, allocations: 8.738 MB / 469.2 MB, free: 2.559 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009777/0.3191, allocations: 83.91 kB / 469.3 MB, free: 2.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.3192, allocations: 44 kB / 469.3 MB, free: 2.434 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (114): * Single equations (assignments): 112 * Array equations: 0 * 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,1,100.0%), (6,29,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001007/0.3202, allocations: 0.6339 MB / 469.9 MB, free: 1.789 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003551/0.3206, allocations: 146.3 kB / 470.1 MB, free: 1.645 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003231/0.3238, allocations: 1.897 MB / 472 MB, free: 15.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.358e-06/0.3239, allocations: 8 kB / 472 MB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.3239, allocations: 4 kB / 472 MB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.3239, allocations: 3.984 kB / 472 MB, free: 15.71 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006663/0.3306, allocations: 3.996 MB / 476 MB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.3306, allocations: 4 kB / 476 MB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007981/0.3314, allocations: 183.7 kB / 476.2 MB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001232/0.3326, allocations: 467 kB / 476.6 MB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.69e-05/0.3327, allocations: 39.97 kB / 476.7 MB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006268/0.339, allocations: 6.675 MB / 483.3 MB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.3391, allocations: 7.969 kB / 483.4 MB, free: 3.828 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00436/0.3434, allocations: 2.779 MB / 486.1 MB, free: 1 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008083/0.3442, allocations: 355.3 kB / 486.5 MB, free: 0.6328 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00026/0.3445, allocations: 24 kB / 486.5 MB, free: 0.6094 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008061/0.3453, allocations: 63.92 kB / 486.6 MB, free: 0.5469 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002168/0.3456, allocations: 84.88 kB / 486.6 MB, free: 476 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.166e-05/0.3456, allocations: 27.98 kB / 486.7 MB, free: 448 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001462/0.3471, allocations: 0.9583 MB / 487.6 MB, free: 15.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3471, allocations: 0 / 487.6 MB, free: 15.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001387/0.3485, allocations: 432 kB / 488.1 MB, free: 15.05 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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],loadInertia.phi) * 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 (84): * Single equations (assignments): 80 * 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.004666/0.3532, allocations: 3.4 MB / 491.5 MB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003348/0.3566, allocations: 2.012 MB / 493.5 MB, free: 9.555 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.3566, allocations: 0 / 493.5 MB, free: 9.555 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002015/0.3586, allocations: 1.344 MB / 494.8 MB, free: 8.148 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/0.3605, allocations: 382 kB / 495.2 MB, free: 7.781 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02448/0.385, allocations: 16.3 MB / 0.4995 GB, free: 7.02 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001518/0.3865, allocations: 1.685 MB / 0.5011 GB, free: 5.305 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0009366/0.3875, allocations: 320 kB / 0.5014 GB, free: 4.988 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009323/0.3884, allocations: 0.6984 MB / 0.5021 GB, free: 4.289 MB / 430.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3884, allocations: 0 / 0.5021 GB, free: 4.289 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2369/0.6254, allocations: 39.83 MB / 0.541 GB, free: 131.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.7/17.33, allocations: 11.16 kB / 0.541 GB, free: 131.6 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_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_Initialize.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Initialize/IMC_Initialize.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches