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.001258/0.001258, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.254/1.254, allocations: 227.4 MB / 246.3 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 64.7 kB / 306.4 MB, free: 0.7188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08649/0.08771, allocations: 50.53 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter): time 0.009295/0.09703, allocations: 8.825 MB / 365.7 MB, free: 5.305 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003784/0.1008, allocations: 2.863 MB / 368.6 MB, free: 2.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004107/0.1013, allocations: 47.81 kB / 368.6 MB, free: 2.383 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001149/0.1024, allocations: 0.5322 MB / 369.2 MB, free: 1.848 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00119/0.1036, allocations: 0.6411 MB / 369.8 MB, free: 1.203 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004647/0.1041, allocations: 287.7 kB / 370.1 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1389/0.243, allocations: 2.558 MB / 372.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001562/0.2446, allocations: 1.438 MB / 374.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009326/0.2456, allocations: 0.903 MB / 375 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001237/0.2468, allocations: 1.237 MB / 376.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002618/0.2471, allocations: 167.6 kB / 376.4 MB, free: 9.805 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005619/0.2476, allocations: 279.1 kB / 376.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000526/0.2482, allocations: 0.6536 MB / 377.3 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000852/0.249, allocations: 1.103 MB / 378.4 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002601/0.2516, allocations: 3.415 MB / 381.8 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2517, allocations: 1.188 kB / 381.8 MB, free: 8.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.92e-07/0.2517, allocations: 7.75 kB / 381.8 MB, free: 8.637 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.005e-05/0.2517, allocations: 0 / 381.8 MB, free: 8.637 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.003815/0.2555, allocations: 2.493 MB / 384.3 MB, free: 7.203 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.2556, allocations: 10 kB / 384.3 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002745/0.2559, allocations: 267.1 kB / 384.6 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005966/0.2565, allocations: 251.5 kB / 384.8 MB, free: 6.934 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001565/0.258, allocations: 1.267 MB / 386.1 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.902e-05/0.2581, allocations: 135.5 kB / 386.2 MB, free: 6.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002406/0.2584, allocations: 181.8 kB / 386.4 MB, free: 6.098 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003257/0.2616, allocations: 2.374 MB / 388.8 MB, free: 5.012 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.371e-05/0.2617, allocations: 11.3 kB / 388.8 MB, free: 5.004 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001546/0.2619, allocations: 74.66 kB / 388.9 MB, free: 4.949 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.589e-05/0.2619, allocations: 90.05 kB / 389 MB, free: 4.938 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002817/0.2648, allocations: 1.972 MB / 390.9 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008139/0.2729, allocations: 7.148 MB / 398.1 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001666/0.2746, allocations: 1.271 MB / 399.4 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.276, allocations: 0.8701 MB / 400.2 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002217/0.2763, allocations: 127 kB / 400.4 MB, free: 13.58 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.2763, allocations: 46.78 kB / 400.4 MB, free: 13.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=87): time 2.685e-06/0.2763, allocations: 0 / 400.4 MB, free: 13.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=104): time 0.01224/0.2886, allocations: 6.101 MB / 406.5 MB, free: 7.734 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.573e-05/0.2886, allocations: 63.72 kB / 406.6 MB, free: 7.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001461/0.2901, allocations: 1.223 MB / 407.8 MB, free: 6.43 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.809e-05/0.2902, allocations: 41.7 kB / 407.8 MB, free: 6.383 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005338/0.2907, allocations: 0.8683 MB / 408.7 MB, free: 5.504 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002524/0.291, allocations: 371.1 kB / 409.1 MB, free: 5.145 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003308/0.2913, allocations: 214.8 kB / 409.3 MB, free: 4.926 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2914, allocations: 357.9 kB / 409.6 MB, free: 4.57 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009452/0.2924, allocations: 0.6194 MB / 410.2 MB, free: 3.953 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/0.2935, allocations: 0.9184 MB / 411.2 MB, free: 2.906 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002114/0.2956, allocations: 1.64 MB / 412.8 MB, free: 1.184 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.2957, allocations: 4 kB / 412.8 MB, free: 1.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=154) (initialization): time 0.003354/0.299, allocations: 2.219 MB / 415 MB, free: 14.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.299, allocations: 12 kB / 415 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.2991, allocations: 8 kB / 415 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.3001, allocations: 479.5 kB / 415.5 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009117/0.301, allocations: 272.6 kB / 415.8 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005664/0.3067, allocations: 6.433 MB / 422.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008107/0.3075, allocations: 83.81 kB / 422.3 MB, free: 7.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.723e-05/0.3076, allocations: 48 kB / 422.3 MB, free: 7.273 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.0008123/0.3084, allocations: 0.6065 MB / 422.9 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002067/0.3086, allocations: 138.4 kB / 423.1 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003228/0.3119, allocations: 2.024 MB / 425.1 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.035e-05/0.3119, allocations: 12 kB / 425.1 MB, free: 4.441 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.3119, allocations: 4 kB / 425.1 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.3119, allocations: 7.922 kB / 425.1 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006095/0.318, allocations: 4.225 MB / 429.3 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.318, allocations: 4 kB / 429.4 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007075/0.3188, allocations: 179.7 kB / 429.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001253/0.32, allocations: 0.5274 MB / 430.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.749e-05/0.3201, allocations: 31.98 kB / 430.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006649/0.3268, allocations: 7.914 MB / 438 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.3268, allocations: 7.938 kB / 438 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004074/0.3309, allocations: 2.947 MB / 441 MB, free: 3.863 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004943/0.3314, allocations: 351.3 kB / 441.3 MB, free: 3.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000184/0.3316, allocations: 24 kB / 441.3 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007048/0.3323, allocations: 75.92 kB / 441.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/0.3325, allocations: 96.69 kB / 441.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.423e-05/0.3326, allocations: 35.98 kB / 441.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001029/0.3336, allocations: 0.8345 MB / 442.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3336, allocations: 0 / 442.4 MB, free: 2.434 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001253/0.3349, allocations: 416 kB / 442.8 MB, free: 2.027 MB / 350.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.004546/0.3394, allocations: 3.572 MB / 446.3 MB, free: 14.35 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002991/0.3424, allocations: 2.146 MB / 448.5 MB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.3424, allocations: 4 kB / 448.5 MB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002027/0.3445, allocations: 1.479 MB / 450 MB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001611/0.3461, allocations: 367.4 kB / 450.3 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02463/0.3707, allocations: 16.99 MB / 467.3 MB, free: 8.324 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.372, allocations: 1.634 MB / 468.9 MB, free: 6.656 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008654/0.3729, allocations: 295.8 kB / 469.2 MB, free: 6.363 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008305/0.3737, allocations: 0.6906 MB / 469.9 MB, free: 5.672 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3737, allocations: 0 / 469.9 MB, free: 5.672 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0524/0.4261, allocations: 35.68 MB / 0.4938 GB, free: 2.371 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002045/0.4264, allocations: 248.2 kB / 0.494 GB, free: 2.113 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.402/2.829, allocations: 0 / 0.494 GB, free: 2.113 MB / 414.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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.mat","/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