Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_3_2_3_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.001625/0.001625, allocations: 113.2 kB / 17.73 MB, free: 5.297 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.001798/0.001798, allocations: 188.2 kB / 18.67 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.444/1.444, allocations: 205.1 MB / 224.5 MB, free: 12.18 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 56.33 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08793/0.08962, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.002662/0.09232, allocations: 1.52 MB / 376.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001987/0.09434, allocations: 0.8941 MB / 377.1 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.236e-05/0.09442, allocations: 4 kB / 377.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.09456, allocations: 11.86 kB / 377.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.697e-05/0.09466, allocations: 19.86 kB / 377.1 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002738/0.09494, allocations: 43.89 kB / 377.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002563/0.0952, allocations: 155.7 kB / 377.3 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.09533, allocations: 23.97 kB / 377.3 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004814/0.09582, allocations: 375.3 kB / 377.7 MB, free: 2.016 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001399/0.09597, allocations: 63.7 kB / 377.7 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.865e-05/0.09602, allocations: 12 kB / 377.7 MB, free: 1.941 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.684e-05/0.09607, allocations: 8 kB / 377.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.842e-05/0.09617, allocations: 63.77 kB / 377.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.09631, allocations: 123.1 kB / 377.9 MB, free: 1.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000398/0.09671, allocations: 358.5 kB / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.09673, allocations: 0 / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.517e-06/0.09674, allocations: 0 / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.861e-06/0.09675, allocations: 3.938 kB / 378.3 MB, free: 1.395 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.000809/0.09756, allocations: 0.7344 MB / 379 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.09761, allocations: 8.031 kB / 379 MB, free: 0.5781 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.73e-05/0.09767, allocations: 34.75 kB / 379.1 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.929e-05/0.09774, allocations: 40.7 kB / 379.1 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003088/0.09806, allocations: 278.6 kB / 379.4 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.318e-05/0.09809, allocations: 12.38 kB / 379.4 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.09812, allocations: 8.375 kB / 379.4 MB, free: 168 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003075/0.09843, allocations: 125.7 kB / 379.5 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.09845, allocations: 0 / 379.5 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.09848, allocations: 4 kB / 379.5 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.09849, allocations: 0 / 379.5 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1622/0.2607, allocations: 57.92 kB / 379.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007322/0.2615, allocations: 464.8 kB / 380 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000189/0.2617, allocations: 98.81 kB / 380.1 MB, free: 12.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001381/0.2618, allocations: 82.83 kB / 380.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.244e-06/0.2619, allocations: 4.75 kB / 380.2 MB, free: 12.76 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003676/0.2622, allocations: 206.6 kB / 380.4 MB, free: 12.65 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 2.004e-06/0.2623, allocations: 0 / 380.4 MB, free: 12.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007401/0.263, allocations: 466.1 kB / 380.9 MB, free: 12.5 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.037e-05/0.2631, allocations: 169.3 kB / 381 MB, free: 12.31 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005789/0.2636, allocations: 0.5147 MB / 381.6 MB, free: 12.11 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.2637, allocations: 30.53 kB / 381.6 MB, free: 12.08 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.997e-05/0.2637, allocations: 100.9 kB / 381.7 MB, free: 12 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.622e-05/0.2638, allocations: 36.11 kB / 381.7 MB, free: 11.99 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000116/0.2639, allocations: 82.7 kB / 381.8 MB, free: 11.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.624e-05/0.264, allocations: 324.2 kB / 382.1 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001553/0.2641, allocations: 55.09 kB / 382.2 MB, free: 11.64 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001443/0.2643, allocations: 72.42 kB / 382.2 MB, free: 11.63 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002767/0.2646, allocations: 345.2 kB / 382.6 MB, free: 11.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2646, allocations: 6.062 kB / 382.6 MB, free: 11.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005907/0.2652, allocations: 379.5 kB / 383 MB, free: 11.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.09e-05/0.2652, allocations: 123.6 kB / 383.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.2653, allocations: 1.453 kB / 383.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.2653, allocations: 4.812 kB / 383.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.3e-05/0.2653, allocations: 8.906 kB / 383.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.206e-06/0.2653, allocations: 8.578 kB / 383.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000133/0.2655, allocations: 13.91 kB / 383.1 MB, free: 11.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.481e-05/0.2655, allocations: 40.47 kB / 383.2 MB, free: 11.05 MB / 318.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.0002851/0.2658, allocations: 363.2 kB / 383.5 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.275e-05/0.2659, allocations: 43.17 kB / 383.5 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.198e-05/0.266, allocations: 65.84 kB / 383.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.266, allocations: 0 / 383.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.266, allocations: 2.094 kB / 383.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.266, allocations: 0 / 383.6 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008434/0.2668, allocations: 0.8166 MB / 384.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2669, allocations: 0 / 384.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.22e-06/0.2669, allocations: 1.703 kB / 384.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.2669, allocations: 4.594 kB / 384.4 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.2669, allocations: 15.42 kB / 384.5 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.2669, allocations: 0 / 384.5 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.2669, allocations: 2.016 kB / 384.5 MB, free: 10.1 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005895/0.2675, allocations: 0.5251 MB / 385 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002617/0.2678, allocations: 245.2 kB / 385.2 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.276e-05/0.2679, allocations: 11.59 kB / 385.2 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001296/0.268, allocations: 13.14 kB / 385.2 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.681e-05/0.2681, allocations: 24.61 kB / 385.3 MB, free: 9.562 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.873e-05/0.2682, allocations: 47.8 kB / 385.3 MB, free: 9.559 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004157/0.2686, allocations: 388.7 kB / 385.7 MB, free: 9.352 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2686, allocations: 3.938 kB / 385.7 MB, free: 9.348 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002924/0.2689, allocations: 53.23 kB / 385.8 MB, free: 9.336 MB / 318.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.000789/0.2697, allocations: 1.076 MB / 386.8 MB, free: 8.461 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004953/0.2702, allocations: 442.2 kB / 387.3 MB, free: 8.113 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2702, allocations: 3.812 kB / 387.3 MB, free: 8.113 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002729/0.2705, allocations: 374.9 kB / 387.6 MB, free: 7.785 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006713/0.2712, allocations: 142.2 kB / 387.8 MB, free: 7.738 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003013/0.2742, allocations: 2.749 MB / 390.5 MB, free: 5.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.2745, allocations: 0.7991 MB / 391.3 MB, free: 5.086 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.514e-05/0.2746, allocations: 21.78 kB / 391.3 MB, free: 5.074 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.616e-05/0.2746, allocations: 30.66 kB / 391.4 MB, free: 5.051 MB / 318.1 MB Notification: Performance of SimCode: time 6.72e-07/0.2746, allocations: 0 / 391.4 MB, free: 5.051 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03442/0.309, allocations: 5.9 MB / 397.3 MB, free: 4.023 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.016/8.326, allocations: 5.5 kB / 397.3 MB, free: 4.02 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/INV3S/INV3S.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.INV3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches