Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.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.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S",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.001423/0.001422, allocations: 112.5 kB / 16.51 MB, free: 6.707 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.001474/0.001474, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.41/1.41, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 47.8 kB / 300.1 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09005/0.09114, allocations: 49.44 MB / 349.5 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.002883/0.09407, allocations: 1.56 MB / 351.1 MB, free: 2.965 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.09595, allocations: 0.8772 MB / 351.9 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.006e-05/0.09605, allocations: 0 / 351.9 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.09618, allocations: 3.938 kB / 352 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.269e-05/0.09631, allocations: 15.91 kB / 352 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002562/0.09658, allocations: 47.84 kB / 352 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001475/0.09674, allocations: 115.8 kB / 352.1 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.09685, allocations: 31.97 kB / 352.2 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004593/0.09731, allocations: 379.3 kB / 352.5 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001143/0.09744, allocations: 67.69 kB / 352.6 MB, free: 1.434 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.436e-05/0.09749, allocations: 4 kB / 352.6 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.407e-05/0.09753, allocations: 4 kB / 352.6 MB, free: 1.426 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.296e-05/0.09763, allocations: 63.7 kB / 352.7 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001255/0.09776, allocations: 115.2 kB / 352.8 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003203/0.09809, allocations: 346.8 kB / 353.1 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.0981, allocations: 0 / 353.1 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.011e-06/0.09811, allocations: 3.938 kB / 353.1 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.09812, allocations: 0 / 353.1 MB, free: 0.9062 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007921/0.09892, allocations: 0.7191 MB / 353.8 MB, free: 116 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.09897, allocations: 12.02 kB / 353.9 MB, free: 104 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.145e-05/0.09903, allocations: 42.75 kB / 353.9 MB, free: 52 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.848e-05/0.0991, allocations: 36.47 kB / 353.9 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003154/0.09942, allocations: 278.4 kB / 354.2 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.09945, allocations: 8.375 kB / 354.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.619e-05/0.09949, allocations: 8.375 kB / 354.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003066/0.0998, allocations: 137.7 kB / 354.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-06/0.09982, allocations: 4 kB / 354.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/0.09985, allocations: 0 / 354.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-06/0.09986, allocations: 4 kB / 354.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001521/0.1, allocations: 59.81 kB / 354.4 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006302/0.1007, allocations: 456.5 kB / 354.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000185/0.1009, allocations: 94.55 kB / 355 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001558/0.101, allocations: 84.83 kB / 355 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.073e-06/0.101, allocations: 0 / 355 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003456/0.1014, allocations: 210.7 kB / 355.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.1014, allocations: 0 / 355.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007945/0.1022, allocations: 464.1 kB / 355.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.985e-05/0.1023, allocations: 174.1 kB / 355.9 MB, free: 13.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006455/0.103, allocations: 0.5207 MB / 356.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.905e-05/0.103, allocations: 29.7 kB / 356.4 MB, free: 13.31 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.155e-05/0.1031, allocations: 101.1 kB / 356.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.6e-05/0.1031, allocations: 27.66 kB / 356.5 MB, free: 13.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001111/0.1032, allocations: 81.41 kB / 356.6 MB, free: 13.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1034, allocations: 330.8 kB / 356.9 MB, free: 12.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001389/0.1035, allocations: 51.97 kB / 357 MB, free: 12.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.1037, allocations: 73.69 kB / 357.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000326/0.104, allocations: 350.6 kB / 357.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.104, allocations: 112 / 357.4 MB, free: 12.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005566/0.1046, allocations: 376.2 kB / 357.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.057e-05/0.1047, allocations: 133.4 kB / 357.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1047, allocations: 0 / 357.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.1047, allocations: 3.984 kB / 357.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.75e-05/0.1047, allocations: 0 / 357.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1047, allocations: 4 kB / 357.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001482/0.1049, allocations: 12 kB / 357.9 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.505e-05/0.1049, allocations: 43.98 kB / 358 MB, free: 11.63 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.x,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.yy,iNV3S.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003196/0.1053, allocations: 358.2 kB / 358.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.536e-05/0.1053, allocations: 39.53 kB / 358.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.908e-05/0.1054, allocations: 71.09 kB / 358.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.197e-06/0.1055, allocations: 4 kB / 358.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1055, allocations: 0 / 358.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.1055, allocations: 0 / 358.4 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009259/0.1064, allocations: 0.8134 MB / 359.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1064, allocations: 0 / 359.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.36e-06/0.1064, allocations: 0 / 359.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.1064, allocations: 0 / 359.2 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.085e-05/0.1065, allocations: 19.98 kB / 359.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1065, allocations: 4 kB / 359.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.1065, allocations: 3.938 kB / 359.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006352/0.1071, allocations: 0.525 MB / 359.8 MB, free: 9.637 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003221/0.1075, allocations: 240.5 kB / 360 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.292e-05/0.1075, allocations: 8.25 kB / 360 MB, free: 9.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.1077, allocations: 27.86 kB / 360.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.1078, allocations: 31.89 kB / 360.1 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.342e-05/0.1079, allocations: 43.94 kB / 360.1 MB, free: 9.273 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004846/0.1084, allocations: 390.9 kB / 360.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1084, allocations: 4 kB / 360.5 MB, free: 8.887 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000346/0.1087, allocations: 40 kB / 360.6 MB, free: 8.848 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001231/0.11, allocations: 1.085 MB / 361.7 MB, free: 7.711 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005607/0.1106, allocations: 448.1 kB / 362.1 MB, free: 7.227 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1106, allocations: 0 / 362.1 MB, free: 7.227 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003306/0.1109, allocations: 369.6 kB / 362.5 MB, free: 6.816 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006719/0.1116, allocations: 115.2 kB / 362.6 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003556/0.1152, allocations: 2.793 MB / 365.4 MB, free: 3.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005101/0.1157, allocations: 0.7986 MB / 366.2 MB, free: 2.973 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.334e-05/0.1158, allocations: 12.66 kB / 366.2 MB, free: 2.961 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.299e-05/0.1158, allocations: 27.42 kB / 366.2 MB, free: 2.934 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1158, allocations: 0 / 366.2 MB, free: 2.934 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1976/0.3134, allocations: 5.476 MB / 371.7 MB, free: 25.69 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/0.3136, allocations: 190.8 kB / 371.9 MB, free: 25.44 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.887/2.2, allocations: 0 / 371.9 MB, free: 25.44 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/INV3S/INV3S.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches