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.001654/0.001654, allocations: 107.3 kB / 16.92 MB, free: 6.145 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.001918/0.001918, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.608/1.608, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009974/0.0009975, allocations: 47.55 kB / 300.7 MB, free: 5.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09296/0.09397, allocations: 49.45 MB / 350.2 MB, free: 4.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Initialize): time 0.01159/0.1056, allocations: 8.894 MB / 359.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005387/0.111, allocations: 2.863 MB / 361.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009275/0.112, allocations: 43.81 kB / 362 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001446/0.1135, allocations: 0.6017 MB / 362.6 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001748/0.1152, allocations: 0.7261 MB / 363.3 MB, free: 7.102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005858/0.1158, allocations: 323.5 kB / 363.6 MB, free: 6.785 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002073/0.1179, allocations: 2.35 MB / 366 MB, free: 4.422 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001837/0.1198, allocations: 1.762 MB / 367.7 MB, free: 2.613 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001158/0.1209, allocations: 1.063 MB / 368.8 MB, free: 1.547 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001407/0.1224, allocations: 1.339 MB / 370.1 MB, free: 208 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.1429/0.2653, allocations: 277.8 kB / 370.4 MB, free: 13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001221/0.2665, allocations: 367.5 kB / 370.8 MB, free: 13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007852/0.2673, allocations: 0.7952 MB / 371.6 MB, free: 13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001173/0.2685, allocations: 1.263 MB / 372.8 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003435/0.272, allocations: 3.639 MB / 376.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.272, allocations: 2.562 kB / 376.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.272, allocations: 3.938 kB / 376.5 MB, free: 12.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.872e-05/0.2721, allocations: 0 / 376.5 MB, free: 12.42 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: 466 * Number of variables: 466 Notification: Performance of Generate backend data structure: time 0.004571/0.2766, allocations: 2.58 MB / 379 MB, free: 11.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.2767, allocations: 11.12 kB / 379.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003027/0.277, allocations: 270.1 kB / 379.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006406/0.2776, allocations: 256.2 kB / 379.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.2796, allocations: 1.348 MB / 380.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.869e-05/0.2797, allocations: 135.3 kB / 381.1 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000262/0.2799, allocations: 183.9 kB / 381.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003545/0.2835, allocations: 2.408 MB / 383.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.792e-05/0.2836, allocations: 11.12 kB / 383.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001773/0.2837, allocations: 75.12 kB / 383.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.622e-05/0.2838, allocations: 87.22 kB / 383.8 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003132/0.287, allocations: 2.014 MB / 385.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009311/0.2963, allocations: 7.457 MB / 393.3 MB, free: 4.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001555/0.2979, allocations: 1.274 MB / 394.6 MB, free: 3.512 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001521/0.2994, allocations: 0.9119 MB / 395.5 MB, free: 3.094 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001902/0.2996, allocations: 120.2 kB / 395.6 MB, free: 2.988 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.2996, allocations: 44.44 kB / 395.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of pre-optimization done (n=84): time 2.375e-06/0.2996, allocations: 0 / 395.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of matching and sorting (n=100): time 0.007924/0.3076, allocations: 4.89 MB / 400.5 MB, free: 172 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.777e-05/0.3076, allocations: 61.88 kB / 400.6 MB, free: 108 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001905/0.3095, allocations: 1.376 MB / 402 MB, free: 15.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.253e-05/0.3096, allocations: 41.7 kB / 402 MB, free: 15.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008928/0.3105, allocations: 0.8963 MB / 402.9 MB, free: 14.11 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003142/0.3109, allocations: 360.1 kB / 403.2 MB, free: 13.77 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003628/0.3112, allocations: 206.9 kB / 403.4 MB, free: 13.55 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.3114, allocations: 357.9 kB / 403.8 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001015/0.3124, allocations: 0.6311 MB / 404.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/0.3136, allocations: 0.9228 MB / 405.3 MB, free: 11.53 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002238/0.3158, allocations: 1.645 MB / 407 MB, free: 9.801 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.3159, allocations: 8 kB / 407 MB, free: 9.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.004071/0.3199, allocations: 2.387 MB / 409.4 MB, free: 7.461 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/0.32, allocations: 8 kB / 409.4 MB, free: 7.453 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.32, allocations: 14.78 kB / 409.4 MB, free: 7.441 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00178/0.3218, allocations: 0.7158 MB / 410.1 MB, free: 6.719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008662/0.3227, allocations: 235 kB / 410.4 MB, free: 6.504 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01065/0.3333, allocations: 8.74 MB / 419.1 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001226/0.3346, allocations: 87.84 kB / 419.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.3347, allocations: 44 kB / 419.2 MB, free: 13.38 MB / 334.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.001083/0.3358, allocations: 0.634 MB / 419.9 MB, free: 12.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000264/0.336, allocations: 142.2 kB / 420 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003281/0.3393, allocations: 1.894 MB / 421.9 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.3394, allocations: 8 kB / 421.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/0.3394, allocations: 4 kB / 421.9 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.3394, allocations: 7.969 kB / 421.9 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006644/0.346, allocations: 4.02 MB / 425.9 MB, free: 6.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.3461, allocations: 4 kB / 425.9 MB, free: 6.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008065/0.3469, allocations: 179.9 kB / 426.1 MB, free: 6.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.3481, allocations: 463.7 kB / 426.6 MB, free: 5.996 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.627e-05/0.3482, allocations: 23.98 kB / 426.6 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006317/0.3545, allocations: 6.699 MB / 433.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.3545, allocations: 7.969 kB / 433.3 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004282/0.3588, allocations: 2.77 MB / 436.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007299/0.3596, allocations: 359.2 kB / 436.4 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002125/0.3598, allocations: 27.98 kB / 436.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007857/0.3606, allocations: 63.92 kB / 436.5 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000205/0.3608, allocations: 83.98 kB / 436.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.985e-05/0.3609, allocations: 31.98 kB / 436.6 MB, free: 11.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001398/0.3623, allocations: 0.9504 MB / 437.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3623, allocations: 0 / 437.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001463/0.3638, allocations: 440.1 kB / 438 MB, free: 10.11 MB / 350.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.004749/0.3685, allocations: 3.411 MB / 441.4 MB, free: 6.664 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004268/0.3728, allocations: 2.376 MB / 443.8 MB, free: 4.309 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.3728, allocations: 0 / 443.8 MB, free: 4.309 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002063/0.3749, allocations: 1.343 MB / 445.1 MB, free: 2.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001969/0.3769, allocations: 378.9 kB / 445.5 MB, free: 2.559 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0254/0.4023, allocations: 17.67 MB / 463.2 MB, free: 116 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001392/0.4037, allocations: 1.689 MB / 464.9 MB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009681/0.4047, allocations: 312 kB / 465.2 MB, free: 14.08 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008911/0.4056, allocations: 0.7023 MB / 465.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4056, allocations: 4 kB / 465.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1289/0.5345, allocations: 39.09 MB / 0.4931 GB, free: 6.738 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.806/10.34, allocations: 17.28 kB / 0.4931 GB, free: 6.73 MB / 414.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