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.001352/0.001357, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001349/0.001349, allocations: 200 kB / 18.01 MB, free: 5.047 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.295/1.295, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009567/0.0009568, allocations: 47.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2315/0.2324, allocations: 49.44 MB / 400.2 MB, free: 8.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.009248/0.2417, allocations: 8.902 MB / 409.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004939/0.2467, allocations: 2.862 MB / 412 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007918/0.2475, allocations: 47.81 kB / 412.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001322/0.2489, allocations: 0.6358 MB / 412.7 MB, free: 12.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001593/0.2505, allocations: 0.7613 MB / 413.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000619/0.2511, allocations: 319.5 kB / 413.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002137/0.2533, allocations: 2.362 MB / 416.1 MB, free: 8.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001792/0.2551, allocations: 1.766 MB / 417.9 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001239/0.2563, allocations: 1.067 MB / 419 MB, free: 6.078 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001381/0.2577, allocations: 1.343 MB / 420.3 MB, free: 4.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002956/0.258, allocations: 280 kB / 420.6 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005406/0.2586, allocations: 363.8 kB / 420.9 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006943/0.2593, allocations: 0.8025 MB / 421.7 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001104/0.2604, allocations: 1.26 MB / 423 MB, free: 2.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003157/0.2635, allocations: 3.686 MB / 426.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2636, allocations: 0 / 426.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2636, allocations: 0 / 426.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.939e-05/0.2636, allocations: 0 / 426.7 MB, free: 14.33 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.004546/0.2682, allocations: 2.643 MB / 429.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.2682, allocations: 8.031 kB / 429.3 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003095/0.2685, allocations: 262 kB / 429.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006175/0.2692, allocations: 271.4 kB / 429.9 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002179/0.2714, allocations: 1.398 MB / 431.3 MB, free: 9.637 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.882e-05/0.2715, allocations: 136 kB / 431.4 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002573/0.2717, allocations: 187.9 kB / 431.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003429/0.2752, allocations: 2.417 MB / 434 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.594e-05/0.2752, allocations: 0 / 434 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001602/0.2754, allocations: 72 kB / 434.1 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-05/0.2755, allocations: 91.48 kB / 434.1 MB, free: 6.707 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003058/0.2786, allocations: 2.016 MB / 436.2 MB, free: 4.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01007/0.2886, allocations: 7.388 MB / 443.6 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001689/0.2903, allocations: 1.273 MB / 444.8 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001585/0.2919, allocations: 0.9236 MB / 445.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002216/0.2922, allocations: 118.1 kB / 445.9 MB, free: 10.69 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.2922, allocations: 39.56 kB / 445.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of pre-optimization done (n=84): time 3.136e-06/0.2922, allocations: 3.938 kB / 445.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of matching and sorting (n=100): time 0.008473/0.3007, allocations: 4.927 MB / 450.8 MB, free: 5.621 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.3008, allocations: 64.41 kB / 450.9 MB, free: 5.543 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001729/0.3025, allocations: 1.376 MB / 452.3 MB, free: 4.16 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.535e-05/0.3026, allocations: 45.7 kB / 452.3 MB, free: 4.109 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005873/0.3032, allocations: 0.9187 MB / 453.2 MB, free: 3.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002525/0.3034, allocations: 368.9 kB / 453.6 MB, free: 2.816 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000328/0.3038, allocations: 214.9 kB / 453.8 MB, free: 2.602 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.3039, allocations: 353.9 kB / 454.1 MB, free: 2.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009146/0.3048, allocations: 0.6311 MB / 454.8 MB, free: 1.617 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001078/0.3059, allocations: 0.922 MB / 455.7 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00208/0.308, allocations: 1.649 MB / 457.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.308, allocations: 4 kB / 457.4 MB, free: 14.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003861/0.3119, allocations: 2.399 MB / 459.8 MB, free: 12.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.3119, allocations: 8 kB / 459.8 MB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.312, allocations: 16.19 kB / 459.8 MB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001671/0.3136, allocations: 0.712 MB / 460.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000831/0.3145, allocations: 235.6 kB / 460.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/0.3246, allocations: 8.731 MB / 469.5 MB, free: 2.398 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.3258, allocations: 88.02 kB / 469.5 MB, free: 2.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.469e-05/0.3259, allocations: 44 kB / 469.6 MB, free: 2.27 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.001032/0.327, allocations: 0.6262 MB / 470.2 MB, free: 1.633 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002705/0.3273, allocations: 151.1 kB / 470.4 MB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003161/0.3304, allocations: 1.893 MB / 472.2 MB, free: 15.57 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.056e-05/0.3305, allocations: 12 kB / 472.3 MB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.3305, allocations: 4 kB / 472.3 MB, free: 15.56 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.3305, allocations: 7.969 kB / 472.3 MB, free: 15.55 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006685/0.3372, allocations: 4.004 MB / 476.3 MB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.3372, allocations: 4.062 kB / 476.3 MB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007736/0.338, allocations: 187.7 kB / 476.5 MB, free: 11.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00116/0.3392, allocations: 459.1 kB / 476.9 MB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.141e-05/0.3393, allocations: 27.97 kB / 476.9 MB, free: 10.78 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005972/0.3452, allocations: 6.695 MB / 483.6 MB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.179e-06/0.3453, allocations: 7.938 kB / 483.6 MB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004087/0.3494, allocations: 2.78 MB / 486.4 MB, free: 0.8242 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008124/0.3502, allocations: 360 kB / 486.8 MB, free: 464 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002023/0.3504, allocations: 35.98 kB / 486.8 MB, free: 428 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000744/0.3511, allocations: 63.92 kB / 486.9 MB, free: 364 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.3513, allocations: 80.83 kB / 486.9 MB, free: 284 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.505e-05/0.3514, allocations: 31.98 kB / 487 MB, free: 252 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0013/0.3527, allocations: 0.9581 MB / 487.9 MB, free: 15.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3527, allocations: 0 / 487.9 MB, free: 15.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00127/0.354, allocations: 435.9 kB / 488.4 MB, free: 14.86 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.004276/0.3583, allocations: 3.419 MB / 491.8 MB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003185/0.3615, allocations: 2.008 MB / 493.8 MB, free: 9.355 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.3615, allocations: 4.625 kB / 493.8 MB, free: 9.352 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001909/0.3634, allocations: 1.343 MB / 495.1 MB, free: 7.945 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/0.365, allocations: 379.8 kB / 495.5 MB, free: 7.578 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.022/0.3871, allocations: 16.36 MB / 0.4999 GB, free: 6.746 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001242/0.3883, allocations: 1.689 MB / 0.5015 GB, free: 5.027 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008233/0.3892, allocations: 312 kB / 0.5018 GB, free: 4.719 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008393/0.39, allocations: 0.6984 MB / 0.5025 GB, free: 4.02 MB / 430.1 MB Notification: Performance of SimCode: time 6.31e-07/0.39, allocations: 4 kB / 0.5025 GB, free: 4.016 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2662/0.6562, allocations: 39.83 MB / 0.5414 GB, free: 131.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.67/17.33, allocations: 3.562 kB / 0.5414 GB, free: 131.9 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