Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001054/0.001054, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001119/0.001119, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.3 kB / 307.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09937/0.1006, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.01041/0.1111, allocations: 8.878 MB / 366.5 MB, free: 5.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005348/0.1164, allocations: 2.882 MB / 369.4 MB, free: 2.176 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001147/0.1176, allocations: 43.81 kB / 369.4 MB, free: 2.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001753/0.1194, allocations: 0.6016 MB / 370 MB, free: 1.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002134/0.1216, allocations: 0.7105 MB / 370.7 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008271/0.1224, allocations: 319.5 kB / 371 MB, free: 0.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1674/0.2898, allocations: 2.223 MB / 373.2 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002255/0.2921, allocations: 1.747 MB / 375 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001626/0.2938, allocations: 1.023 MB / 376 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001791/0.2956, allocations: 1.282 MB / 377.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004803/0.2961, allocations: 267.7 kB / 377.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008218/0.2969, allocations: 364.7 kB / 377.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007423/0.2977, allocations: 0.7565 MB / 378.7 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0013/0.299, allocations: 1.212 MB / 379.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004354/0.3033, allocations: 3.498 MB / 383.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.241e-06/0.3034, allocations: 0 / 383.4 MB, free: 8.211 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3034, allocations: 4 kB / 383.4 MB, free: 8.207 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.937e-05/0.3035, allocations: 1.062 kB / 383.4 MB, free: 8.207 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: 468 * Number of variables: 468 Notification: Performance of Generate backend data structure: time 0.005512/0.309, allocations: 2.49 MB / 385.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.3091, allocations: 11.75 kB / 385.9 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002962/0.3094, allocations: 268.5 kB / 386.1 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006741/0.3101, allocations: 252.2 kB / 386.4 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.3119, allocations: 1.266 MB / 387.7 MB, free: 5.793 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.687e-05/0.312, allocations: 135.4 kB / 387.8 MB, free: 5.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002487/0.3122, allocations: 184.4 kB / 388 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003479/0.3157, allocations: 2.376 MB / 390.3 MB, free: 4.629 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.723e-05/0.3158, allocations: 6.719 kB / 390.4 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001649/0.3159, allocations: 70.44 kB / 390.4 MB, free: 4.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.31e-05/0.316, allocations: 96.62 kB / 390.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003019/0.3191, allocations: 1.968 MB / 392.5 MB, free: 3.555 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009257/0.3283, allocations: 7.145 MB / 399.6 MB, free: 14.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001742/0.3301, allocations: 1.274 MB / 400.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001542/0.3317, allocations: 0.8713 MB / 401.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002151/0.3319, allocations: 114.1 kB / 401.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.3319, allocations: 47.56 kB / 401.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=87): time 3.035e-06/0.3319, allocations: 0 / 401.9 MB, free: 12.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.01361/0.3456, allocations: 6.114 MB / 408 MB, free: 6.516 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.3456, allocations: 60.41 kB / 408.1 MB, free: 6.445 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001725/0.3474, allocations: 1.223 MB / 409.3 MB, free: 5.211 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001037/0.3475, allocations: 45.08 kB / 409.4 MB, free: 5.164 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005635/0.348, allocations: 0.8721 MB / 410.2 MB, free: 4.281 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003299/0.3484, allocations: 360.9 kB / 410.6 MB, free: 3.93 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003486/0.3487, allocations: 218.8 kB / 410.8 MB, free: 3.707 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3489, allocations: 357.9 kB / 411.2 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009992/0.3499, allocations: 0.6155 MB / 411.8 MB, free: 2.738 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.3511, allocations: 0.9219 MB / 412.7 MB, free: 1.688 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002236/0.3533, allocations: 1.647 MB / 414.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.3533, allocations: 0 / 414.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003737/0.3571, allocations: 2.226 MB / 416.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.3e-05/0.3571, allocations: 8 kB / 416.6 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.3571, allocations: 8 kB / 416.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001108/0.3582, allocations: 485.8 kB / 417.1 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.3593, allocations: 272.9 kB / 417.3 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006616/0.3659, allocations: 7.014 MB / 424.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/0.3672, allocations: 87.81 kB / 424.4 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.3674, allocations: 47.98 kB / 424.5 MB, free: 5.465 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (132): * Single equations (assignments): 127 * 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%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001158/0.3685, allocations: 0.6048 MB / 425.1 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002795/0.3688, allocations: 134.3 kB / 425.2 MB, free: 4.734 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004296/0.3731, allocations: 2.032 MB / 427.2 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.691e-05/0.3731, allocations: 8 kB / 427.2 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.205e-05/0.3732, allocations: 4 kB / 427.3 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.118e-05/0.3732, allocations: 7.969 kB / 427.3 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009192/0.3824, allocations: 4.229 MB / 431.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.367e-06/0.3825, allocations: 4 kB / 431.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007729/0.3832, allocations: 176.9 kB / 431.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001413/0.3847, allocations: 0.5389 MB / 432.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.819e-05/0.3848, allocations: 31.98 kB / 432.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01115/0.3959, allocations: 8.622 MB / 440.9 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/0.396, allocations: 7.938 kB / 440.9 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007467/0.4035, allocations: 2.939 MB / 443.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001205/0.4047, allocations: 343.3 kB / 444.1 MB, free: 1.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003543/0.4051, allocations: 31.98 kB / 444.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001331/0.4064, allocations: 71.86 kB / 444.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003891/0.4068, allocations: 92.81 kB / 444.3 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001276/0.407, allocations: 32 kB / 444.4 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002171/0.4092, allocations: 0.8393 MB / 445.2 MB, free: 15.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.4092, allocations: 4 kB / 445.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002672/0.4119, allocations: 411.9 kB / 445.6 MB, free: 15.57 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (aimc.inertiaRotor.w,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,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 (88): * Single equations (assignments): 83 * 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,6,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.008957/0.4209, allocations: 3.569 MB / 449.2 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007678/0.4286, allocations: 2.5 MB / 451.7 MB, free: 9.316 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/0.4286, allocations: 0 / 451.7 MB, free: 9.316 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004177/0.4328, allocations: 1.48 MB / 453.2 MB, free: 7.766 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00369/0.4365, allocations: 400.8 kB / 453.6 MB, free: 7.391 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03638/0.4729, allocations: 16.23 MB / 469.8 MB, free: 6.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001278/0.4743, allocations: 1.641 MB / 471.4 MB, free: 4.574 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009973/0.4753, allocations: 299.8 kB / 471.7 MB, free: 4.277 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008709/0.4761, allocations: 0.6904 MB / 472.4 MB, free: 3.59 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.4762, allocations: 0 / 472.4 MB, free: 3.59 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1122/0.5884, allocations: 36.7 MB / 0.4972 GB, free: 15.27 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.772/10.36, allocations: 4.062 kB / 0.4972 GB, free: 15.26 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_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_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Inverter/IMC_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches