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.001392/0.001392, allocations: 105.3 kB / 17.06 MB, free: 6.008 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.001539/0.001539, allocations: 192 kB / 18 MB, free: 5.086 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.369/1.369, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2829, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.002455/0.2854, allocations: 1.517 MB / 401.8 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001734/0.2871, allocations: 0.8387 MB / 402.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.731e-05/0.2872, allocations: 3.938 kB / 402.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.289e-05/0.2873, allocations: 11.92 kB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.27e-05/0.2874, allocations: 19.86 kB / 402.6 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002481/0.2876, allocations: 51.88 kB / 402.7 MB, free: 6.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001911/0.2878, allocations: 151.7 kB / 402.8 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.725e-05/0.288, allocations: 27.97 kB / 402.9 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004086/0.2884, allocations: 395.1 kB / 403.2 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001134/0.2885, allocations: 63.75 kB / 403.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.374e-05/0.2885, allocations: 12 kB / 403.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.383e-05/0.2886, allocations: 12 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.228e-05/0.2887, allocations: 63.77 kB / 403.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.2888, allocations: 115.1 kB / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003395/0.2891, allocations: 361.5 kB / 403.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.2891, allocations: 0 / 403.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.2891, allocations: 0 / 403.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.2892, allocations: 0 / 403.9 MB, free: 5.184 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.0007364/0.2899, allocations: 0.7382 MB / 404.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.2899, allocations: 8.031 kB / 404.6 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.572e-05/0.29, allocations: 42.75 kB / 404.6 MB, free: 4.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.506e-05/0.2901, allocations: 48.64 kB / 404.7 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002761/0.2904, allocations: 274.7 kB / 405 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.2904, allocations: 12.31 kB / 405 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.996e-05/0.2904, allocations: 8.375 kB / 405 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002908/0.2907, allocations: 125.7 kB / 405.1 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.384e-06/0.2907, allocations: 0 / 405.1 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.166e-05/0.2908, allocations: 4 kB / 405.1 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.2908, allocations: 0 / 405.1 MB, free: 3.805 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.2909, allocations: 59.97 kB / 405.2 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006594/0.2916, allocations: 472.4 kB / 405.6 MB, free: 3.234 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001968/0.2918, allocations: 90.55 kB / 405.7 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001507/0.2919, allocations: 84.89 kB / 405.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.367e-06/0.292, allocations: 0 / 405.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003611/0.2923, allocations: 206.6 kB / 406 MB, free: 2.824 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.422e-06/0.2923, allocations: 0 / 406 MB, free: 2.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007895/0.2931, allocations: 464.1 kB / 406.5 MB, free: 2.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.51e-05/0.2932, allocations: 170.2 kB / 406.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006166/0.2939, allocations: 0.513 MB / 407.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.28e-05/0.2939, allocations: 29.7 kB / 407.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.852e-05/0.294, allocations: 97.12 kB / 407.3 MB, free: 1.477 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.183e-05/0.294, allocations: 35.73 kB / 407.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.2941, allocations: 81.55 kB / 407.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2943, allocations: 330.8 kB / 407.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001239/0.2944, allocations: 55.97 kB / 407.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.2946, allocations: 73.67 kB / 407.8 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003916/0.295, allocations: 346.8 kB / 408.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.295, allocations: 0 / 408.2 MB, free: 0.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004797/0.2955, allocations: 384.3 kB / 408.5 MB, free: 96 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.938e-05/0.2956, allocations: 126.8 kB / 408.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.2956, allocations: 7.922 kB / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.378e-05/0.2956, allocations: 0 / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.883e-05/0.2956, allocations: 0 / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.2956, allocations: 112 / 408.7 MB, free: 15.94 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001312/0.2958, allocations: 15.94 kB / 408.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.2959, allocations: 43.98 kB / 408.7 MB, free: 15.88 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.0003245/0.2962, allocations: 370.2 kB / 409.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.074e-05/0.2963, allocations: 39.77 kB / 409.1 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.994e-05/0.2964, allocations: 63.16 kB / 409.2 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.2964, allocations: 0 / 409.2 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.2964, allocations: 0 / 409.2 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.2964, allocations: 4 kB / 409.2 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008941/0.2973, allocations: 0.8096 MB / 410 MB, free: 14.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.2973, allocations: 4 kB / 410 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.067e-06/0.2973, allocations: 0 / 410 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.2973, allocations: 0 / 410 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.318e-05/0.2974, allocations: 11.98 kB / 410 MB, free: 14.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.2974, allocations: 11.94 kB / 410 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.2974, allocations: 3.938 kB / 410 MB, free: 14.46 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006948/0.2981, allocations: 0.5254 MB / 410.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002996/0.2984, allocations: 244.6 kB / 410.8 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.102e-05/0.2984, allocations: 8 kB / 410.8 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.2986, allocations: 15.98 kB / 410.8 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.2987, allocations: 31.89 kB / 410.8 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.521e-05/0.2988, allocations: 40 kB / 410.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004326/0.2992, allocations: 390.9 kB / 411.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2992, allocations: 0 / 411.3 MB, free: 13.16 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002855/0.2995, allocations: 47.98 kB / 411.3 MB, free: 13.11 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.0009341/0.3004, allocations: 1.084 MB / 412.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004812/0.3009, allocations: 433.5 kB / 412.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3009, allocations: 0 / 412.8 MB, free: 11.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002981/0.3012, allocations: 381.5 kB / 413.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006621/0.3019, allocations: 128.5 kB / 413.3 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003272/0.3052, allocations: 2.751 MB / 416.1 MB, free: 8.102 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004282/0.3056, allocations: 0.8099 MB / 416.9 MB, free: 7.266 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.011e-05/0.3057, allocations: 12.64 kB / 416.9 MB, free: 7.254 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.999e-05/0.3058, allocations: 31.36 kB / 416.9 MB, free: 7.223 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3058, allocations: 0 / 416.9 MB, free: 7.223 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02629/0.3321, allocations: 5.917 MB / 422.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.416/7.748, allocations: 15.52 kB / 422.9 MB, free: 1.363 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.csv","/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