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.001526/0.001526, allocations: 109.5 kB / 17.73 MB, free: 5.359 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.00164/0.00164, allocations: 188.1 kB / 18.66 MB, free: 4.438 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.423/1.423, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001855/0.001855, allocations: 55.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09921/0.1011, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.002762/0.1039, allocations: 1.513 MB / 376.2 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.1055, allocations: 0.898 MB / 377.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.314e-05/0.1056, allocations: 0 / 377.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.308e-05/0.1057, allocations: 7.922 kB / 377.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.133e-05/0.1058, allocations: 23.8 kB / 377.1 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002213/0.106, allocations: 43.89 kB / 377.1 MB, free: 2.582 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002028/0.1062, allocations: 159.7 kB / 377.3 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.719e-05/0.1063, allocations: 16 kB / 377.3 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003757/0.1067, allocations: 391.2 kB / 377.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001113/0.1068, allocations: 71.7 kB / 377.8 MB, free: 1.957 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.292e-05/0.1069, allocations: 8 kB / 377.8 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.457e-05/0.1069, allocations: 12 kB / 377.8 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.268e-05/0.107, allocations: 63.75 kB / 377.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001088/0.1071, allocations: 119.1 kB / 378 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003017/0.1074, allocations: 358.5 kB / 378.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1074, allocations: 0 / 378.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1074, allocations: 0 / 378.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.1074, allocations: 0 / 378.3 MB, free: 1.406 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.0006629/0.1081, allocations: 0.7305 MB / 379 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.1082, allocations: 12.03 kB / 379 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.309e-05/0.1082, allocations: 42.73 kB / 379.1 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.353e-05/0.1083, allocations: 44.64 kB / 379.1 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002483/0.1085, allocations: 278.6 kB / 379.4 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.1085, allocations: 8.375 kB / 379.4 MB, free: 180 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.1086, allocations: 4.375 kB / 379.4 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002654/0.1089, allocations: 129.7 kB / 379.5 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.1089, allocations: 0 / 379.5 MB, free: 40 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.241e-05/0.1089, allocations: 8 kB / 379.5 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.08e-06/0.1089, allocations: 3.984 kB / 379.6 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1961/0.305, allocations: 50.53 kB / 379.6 MB, free: 13.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007718/0.3058, allocations: 462.3 kB / 380.1 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001899/0.3061, allocations: 100.3 kB / 380.2 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001593/0.3062, allocations: 89.12 kB / 380.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.223e-06/0.3062, allocations: 0 / 380.2 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003461/0.3066, allocations: 202.7 kB / 380.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.633e-06/0.3066, allocations: 1.781 kB / 380.4 MB, free: 12.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.000709/0.3073, allocations: 469.3 kB / 380.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/0.3074, allocations: 166.8 kB / 381.1 MB, free: 12.35 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005329/0.3079, allocations: 0.515 MB / 381.6 MB, free: 12.15 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.3079, allocations: 29.83 kB / 381.6 MB, free: 12.12 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.014e-05/0.308, allocations: 101.1 kB / 381.7 MB, free: 12.04 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.472e-05/0.308, allocations: 32.73 kB / 381.7 MB, free: 12.03 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.524e-05/0.3081, allocations: 83.42 kB / 381.8 MB, free: 12 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.53e-05/0.3082, allocations: 324.5 kB / 382.1 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.3083, allocations: 56.48 kB / 382.2 MB, free: 11.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.3084, allocations: 72.73 kB / 382.3 MB, free: 11.67 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/0.3088, allocations: 343.3 kB / 382.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3088, allocations: 4.469 kB / 382.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005926/0.3094, allocations: 383.2 kB / 383 MB, free: 11.22 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.726e-05/0.3095, allocations: 123.4 kB / 383.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.3095, allocations: 1.125 kB / 383.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/0.3095, allocations: 4.094 kB / 383.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.269e-05/0.3095, allocations: 2.359 kB / 383.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.3095, allocations: 1.406 kB / 383.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000146/0.3097, allocations: 11.12 kB / 383.1 MB, free: 11.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.91e-05/0.3098, allocations: 44.05 kB / 383.2 MB, free: 11.09 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.0002737/0.31, allocations: 367.4 kB / 383.5 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.767e-05/0.3101, allocations: 40.38 kB / 383.6 MB, free: 10.76 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001009/0.3102, allocations: 66 kB / 383.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.3102, allocations: 1.125 kB / 383.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.441e-06/0.3102, allocations: 1.359 kB / 383.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.3102, allocations: 0 / 383.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008352/0.3111, allocations: 0.8176 MB / 384.4 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3111, allocations: 4.875 kB / 384.4 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.198e-06/0.3111, allocations: 0 / 384.4 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.3111, allocations: 4.312 kB / 384.4 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.3111, allocations: 15.44 kB / 384.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3111, allocations: 0.7812 kB / 384.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.3111, allocations: 2.156 kB / 384.5 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005198/0.3117, allocations: 0.526 MB / 385 MB, free: 9.797 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002793/0.312, allocations: 249.6 kB / 385.2 MB, free: 9.613 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.26e-05/0.312, allocations: 14.69 kB / 385.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.3122, allocations: 10.28 kB / 385.3 MB, free: 9.609 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.715e-05/0.3123, allocations: 20.56 kB / 385.3 MB, free: 9.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.234e-05/0.3123, allocations: 52.67 kB / 385.3 MB, free: 9.598 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0003958/0.3127, allocations: 388.6 kB / 385.7 MB, free: 9.391 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3127, allocations: 0 / 385.7 MB, free: 9.391 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.313, allocations: 49.48 kB / 385.8 MB, free: 9.383 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.0007571/0.3138, allocations: 1.084 MB / 386.8 MB, free: 8.5 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004665/0.3142, allocations: 440.3 kB / 387.3 MB, free: 8.156 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3143, allocations: 0 / 387.3 MB, free: 8.156 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002536/0.3145, allocations: 379 kB / 387.6 MB, free: 7.824 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006406/0.3152, allocations: 128.1 kB / 387.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002852/0.318, allocations: 2.761 MB / 390.5 MB, free: 5.863 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002725/0.3183, allocations: 0.8031 MB / 391.3 MB, free: 5.125 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.84e-05/0.3184, allocations: 10.94 kB / 391.3 MB, free: 5.121 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.049e-05/0.3184, allocations: 32.97 kB / 391.4 MB, free: 5.098 MB / 318.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3184, allocations: 1.094 kB / 391.4 MB, free: 5.098 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.132/1.451, allocations: 5.906 MB / 397.3 MB, free: 4.062 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.71/10.16, allocations: 3.938 kB / 397.3 MB, free: 4.059 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