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.001799/0.001799, allocations: 106.4 kB / 17.06 MB, free: 6.133 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.001845/0.001845, allocations: 195 kB / 18 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.138/3.138, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002423/0.002423, allocations: 47.92 kB / 350.8 MB, free: 3.801 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6368/0.6393, allocations: 49.43 MB / 400.2 MB, free: 8.438 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.005448/0.6448, allocations: 1.512 MB / 401.7 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00356/0.6484, allocations: 0.8468 MB / 402.6 MB, free: 6.488 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.6486, allocations: 4 kB / 402.6 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.6488, allocations: 15.86 kB / 402.6 MB, free: 6.469 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001284/0.6489, allocations: 15.86 kB / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004705/0.6494, allocations: 51.88 kB / 402.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004002/0.6498, allocations: 151.7 kB / 402.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.6501, allocations: 27.97 kB / 402.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008368/0.6509, allocations: 399.2 kB / 403.2 MB, free: 5.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000278/0.6512, allocations: 59.77 kB / 403.3 MB, free: 5.777 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.099e-05/0.6513, allocations: 8 kB / 403.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.765e-05/0.6514, allocations: 15.94 kB / 403.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00018/0.6516, allocations: 59.77 kB / 403.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001961/0.6518, allocations: 115.2 kB / 403.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006558/0.6524, allocations: 358.7 kB / 403.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.6525, allocations: 0 / 403.8 MB, free: 5.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6525, allocations: 4 kB / 403.8 MB, free: 5.227 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.336e-05/0.6525, allocations: 4 kB / 403.8 MB, free: 5.223 MB / 318.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.001321/0.6538, allocations: 0.7282 MB / 404.6 MB, free: 4.422 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.737e-05/0.6539, allocations: 8.031 kB / 404.6 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.113e-05/0.654, allocations: 42.67 kB / 404.6 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.6542, allocations: 36.56 kB / 404.7 MB, free: 4.328 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004978/0.6547, allocations: 270.3 kB / 404.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.102e-05/0.6547, allocations: 12.38 kB / 404.9 MB, free: 4.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.128e-05/0.6548, allocations: 8.375 kB / 404.9 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005001/0.6553, allocations: 129.5 kB / 405.1 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.6553, allocations: 0 / 405.1 MB, free: 3.875 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.065e-05/0.6554, allocations: 4 kB / 405.1 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.6554, allocations: 3.938 kB / 405.1 MB, free: 3.867 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002834/0.6557, allocations: 59.95 kB / 405.1 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001315/0.657, allocations: 456.5 kB / 405.6 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003836/0.6574, allocations: 98.48 kB / 405.7 MB, free: 3.207 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002844/0.6577, allocations: 84.88 kB / 405.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.91e-05/0.6577, allocations: 0 / 405.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000783/0.6585, allocations: 206.6 kB / 406 MB, free: 2.895 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.805e-06/0.6586, allocations: 0 / 406 MB, free: 2.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.001463/0.66, allocations: 476 kB / 406.4 MB, free: 2.398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001933/0.6603, allocations: 162.2 kB / 406.6 MB, free: 2.203 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001232/0.6615, allocations: 0.5169 MB / 407.1 MB, free: 1.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.81e-05/0.6616, allocations: 33.7 kB / 407.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001363/0.6617, allocations: 101 kB / 407.2 MB, free: 1.531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.979e-05/0.6618, allocations: 23.72 kB / 407.3 MB, free: 1.508 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002606/0.6621, allocations: 77.42 kB / 407.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001953/0.6623, allocations: 330.8 kB / 407.7 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001928/0.6625, allocations: 55.97 kB / 407.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002679/0.6628, allocations: 85.55 kB / 407.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006604/0.6635, allocations: 335.3 kB / 408.1 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.6635, allocations: 0 / 408.1 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0009153/0.6644, allocations: 376.2 kB / 408.5 MB, free: 172 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001581/0.6646, allocations: 126.8 kB / 408.6 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.6646, allocations: 0 / 408.6 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.077e-05/0.6647, allocations: 7.984 kB / 408.6 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.537e-05/0.6647, allocations: 112 / 408.6 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/0.6647, allocations: 8 kB / 408.6 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.6651, allocations: 20.09 kB / 408.7 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.071e-05/0.6652, allocations: 40 kB / 408.7 MB, free: 15.94 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.0006427/0.6659, allocations: 362.2 kB / 409 MB, free: 15.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001099/0.666, allocations: 35.62 kB / 409.1 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002571/0.6662, allocations: 67.14 kB / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.6663, allocations: 0 / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.316e-06/0.6663, allocations: 128 / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.6663, allocations: 0 / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001884/0.6682, allocations: 0.8269 MB / 410 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.6682, allocations: 0 / 410 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.108e-05/0.6682, allocations: 4 kB / 410 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.6683, allocations: 0 / 410 MB, free: 14.54 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.176e-05/0.6683, allocations: 11.98 kB / 410 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.6683, allocations: 0 / 410 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.6683, allocations: 3.938 kB / 410 MB, free: 14.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001273/0.6696, allocations: 0.529 MB / 410.5 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005357/0.6702, allocations: 240.5 kB / 410.8 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.6703, allocations: 12 kB / 410.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003478/0.6707, allocations: 8 kB / 410.8 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002193/0.6709, allocations: 27.91 kB / 410.8 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001156/0.671, allocations: 51.92 kB / 410.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008499/0.6719, allocations: 386.9 kB / 411.2 MB, free: 13.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.6719, allocations: 3.938 kB / 411.2 MB, free: 13.22 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007725/0.6727, allocations: 43.91 kB / 411.3 MB, free: 13.18 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.001725/0.6744, allocations: 1.084 MB / 412.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/0.6755, allocations: 433.5 kB / 412.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.6755, allocations: 0 / 412.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005501/0.676, allocations: 377.6 kB / 413.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.6772, allocations: 138.1 kB / 413.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006815/0.6841, allocations: 2.759 MB / 416 MB, free: 8.164 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000854/0.685, allocations: 0.7983 MB / 416.8 MB, free: 7.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001236/0.6851, allocations: 16.62 kB / 416.9 MB, free: 7.324 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.559e-05/0.6852, allocations: 23.44 kB / 416.9 MB, free: 7.301 MB / 334.1 MB Notification: Performance of SimCode: time 1.422e-06/0.6852, allocations: 0 / 416.9 MB, free: 7.301 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04419/0.7294, allocations: 6.011 MB / 422.9 MB, free: 1.348 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.73, allocations: 12.56 kB / 422.9 MB, free: 1.336 MB / 334.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) "" 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