Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.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.Digital.Examples.INV3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001233/0.001233, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001281/0.001281, allocations: 198 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2946, allocations: 50.55 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.00302/0.2977, allocations: 1.528 MB / 410.3 MB, free: 12 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.2996, allocations: 0.8809 MB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.78e-05/0.2997, allocations: 4 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.109e-05/0.2998, allocations: 11.86 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.731e-05/0.2999, allocations: 19.86 kB / 411.2 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002506/0.3001, allocations: 51.88 kB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.3003, allocations: 143.7 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.3005, allocations: 27.98 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004386/0.3009, allocations: 395.2 kB / 411.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001417/0.3011, allocations: 59.77 kB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.128e-05/0.3011, allocations: 12 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.795e-05/0.3011, allocations: 8 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.719e-05/0.3013, allocations: 71.64 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.3014, allocations: 111.2 kB / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003746/0.3018, allocations: 358.7 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3018, allocations: 0 / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.3018, allocations: 3.938 kB / 412.4 MB, free: 13.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.137e-05/0.3018, allocations: 0 / 412.4 MB, free: 13.87 MB / 334.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.0009051/0.3027, allocations: 0.7243 MB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3028, allocations: 8.031 kB / 413.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.329e-05/0.3028, allocations: 38.75 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.443e-05/0.3029, allocations: 36.56 kB / 413.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002684/0.3032, allocations: 282.2 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.3032, allocations: 4.375 kB / 413.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.858e-05/0.3032, allocations: 12.38 kB / 413.5 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000284/0.3035, allocations: 125.7 kB / 413.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.3035, allocations: 0 / 413.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.187e-05/0.3036, allocations: 4 kB / 413.6 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.3036, allocations: 4 kB / 413.6 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001314/0.3037, allocations: 63.91 kB / 413.7 MB, free: 12.45 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006067/0.3043, allocations: 456.6 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.3045, allocations: 94.55 kB / 414.2 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001391/0.3047, allocations: 88.81 kB / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.3047, allocations: 4 kB / 414.3 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003342/0.305, allocations: 199.8 kB / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.443e-06/0.305, allocations: 0 / 414.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007595/0.3058, allocations: 463.9 kB / 415 MB, free: 11.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.347e-05/0.3059, allocations: 178.1 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006073/0.3065, allocations: 0.513 MB / 415.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.3066, allocations: 29.7 kB / 415.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.558e-05/0.3066, allocations: 109 kB / 415.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.98e-05/0.3067, allocations: 31.69 kB / 415.8 MB, free: 10.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000112/0.3068, allocations: 73.42 kB / 415.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3069, allocations: 326.8 kB / 416.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.307, allocations: 59.97 kB / 416.3 MB, free: 9.676 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001312/0.3072, allocations: 73.62 kB / 416.4 MB, free: 9.598 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003098/0.3075, allocations: 347.3 kB / 416.7 MB, free: 9.203 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.3075, allocations: 3.938 kB / 416.7 MB, free: 9.199 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005015/0.308, allocations: 387.7 kB / 417.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.39e-05/0.3081, allocations: 129.6 kB / 417.2 MB, free: 8.645 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3081, allocations: 4 kB / 417.2 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.3082, allocations: 0 / 417.2 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.846e-05/0.3082, allocations: 0 / 417.2 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.88e-06/0.3082, allocations: 0 / 417.2 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.3083, allocations: 12 kB / 417.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.342e-05/0.3084, allocations: 39.98 kB / 417.3 MB, free: 8.59 MB / 334.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.0003368/0.3087, allocations: 374.3 kB / 417.6 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.761e-05/0.3088, allocations: 35.62 kB / 417.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.819e-05/0.3089, allocations: 67.09 kB / 417.7 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.3089, allocations: 0 / 417.7 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3089, allocations: 0 / 417.7 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.3089, allocations: 0 / 417.7 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009504/0.3099, allocations: 0.8172 MB / 418.5 MB, free: 7.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3099, allocations: 3.984 kB / 418.5 MB, free: 7.184 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.209e-06/0.3099, allocations: 4 kB / 418.5 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.3099, allocations: 0 / 418.5 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.597e-05/0.3099, allocations: 11.98 kB / 418.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3099, allocations: 4 kB / 418.6 MB, free: 7.164 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.31, allocations: 3.938 kB / 418.6 MB, free: 7.16 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006291/0.3106, allocations: 0.5175 MB / 419.1 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003219/0.3109, allocations: 244.4 kB / 419.3 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.67e-05/0.311, allocations: 12 kB / 419.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000139/0.3112, allocations: 15.98 kB / 419.3 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.3113, allocations: 35.84 kB / 419.4 MB, free: 6.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.165e-05/0.3113, allocations: 39.94 kB / 419.4 MB, free: 6.242 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004539/0.3118, allocations: 390.9 kB / 419.8 MB, free: 5.863 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.573e-06/0.3118, allocations: 0 / 419.8 MB, free: 5.863 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002886/0.3121, allocations: 47.94 kB / 419.9 MB, free: 5.816 MB / 334.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.0009199/0.313, allocations: 1.074 MB / 420.9 MB, free: 4.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000506/0.3135, allocations: 437.5 kB / 421.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3136, allocations: 0 / 421.4 MB, free: 4.215 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.3139, allocations: 373.6 kB / 421.7 MB, free: 3.801 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005973/0.3145, allocations: 134.4 kB / 421.8 MB, free: 3.684 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003531/0.318, allocations: 2.755 MB / 424.6 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005303/0.3186, allocations: 0.8061 MB / 425.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.452e-05/0.3187, allocations: 4.672 kB / 425.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.91e-05/0.3187, allocations: 27.42 kB / 425.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.3187, allocations: 0 / 425.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02481/0.3436, allocations: 6.006 MB / 431.4 MB, free: 9.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.605/7.948, allocations: 13.41 kB / 431.5 MB, free: 9.973 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.INV3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,iNV3S.y Variables in the result:e_table.n,e_table.t[1],e_table.t[2],e_table.t[3],e_table.x[1],e_table.x[2],e_table.x[3],e_table.y,e_table.y0,iNV3S.enable,iNV3S.strength,iNV3S.tHL,iNV3S.tLH,iNV3S.x,iNV3S.y,time,x_table.n,x_table.t[1],x_table.t[2],x_table.x[1],x_table.x[2],x_table.y,x_table.y0