Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Blocks.Limiters,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Limiters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Limiters,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_Limiters",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.001369/0.001368, allocations: 105.7 kB / 16.27 MB, free: 5.93 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: 191 kB / 17.2 MB, free: 5.574 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.419/1.419, allocations: 205.1 MB / 223.1 MB, free: 12.29 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1994/0.1994, allocations: 43.51 MB / 313.9 MB, free: 0.5273 MB / 254.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.001501/0.001501, allocations: 67.23 kB / 382.8 MB, free: 56.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09107/0.09258, allocations: 57.79 MB / 440.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Limiters): time 0.002622/0.09524, allocations: 1.679 MB / 442.3 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009082/0.09617, allocations: 0.6399 MB / 442.9 MB, free: 4.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.76e-05/0.09628, allocations: 4 kB / 442.9 MB, free: 4.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.526e-05/0.09633, allocations: 15.81 kB / 443 MB, free: 4.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001005/0.09644, allocations: 19.8 kB / 443 MB, free: 4.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003548/0.0968, allocations: 139.4 kB / 443.1 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001538/0.09696, allocations: 155.5 kB / 443.3 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.0971, allocations: 40.95 kB / 443.3 MB, free: 4.086 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.266e-05/0.0972, allocations: 67.83 kB / 443.4 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.286e-05/0.0973, allocations: 75.59 kB / 443.4 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.822e-05/0.09734, allocations: 16 kB / 443.5 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.264e-05/0.09736, allocations: 12 kB / 443.5 MB, free: 3.918 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.055e-05/0.0974, allocations: 27.92 kB / 443.5 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.257e-05/0.09746, allocations: 63.64 kB / 443.6 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001256/0.09759, allocations: 131.5 kB / 443.7 MB, free: 3.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.0976, allocations: 4 kB / 443.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.0976, allocations: 0 / 443.7 MB, free: 3.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.09761, allocations: 0 / 443.7 MB, free: 3.695 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005277/0.09815, allocations: 455 kB / 444.1 MB, free: 3.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.09819, allocations: 15.89 kB / 444.1 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.469e-05/0.09823, allocations: 42.75 kB / 444.2 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.06e-05/0.09827, allocations: 20.69 kB / 444.2 MB, free: 3.117 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001888/0.09847, allocations: 213 kB / 444.4 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.364e-05/0.09849, allocations: 8.375 kB / 444.4 MB, free: 2.863 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/0.09852, allocations: 12.38 kB / 444.4 MB, free: 2.852 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003474/0.09887, allocations: 180.1 kB / 444.6 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.09889, allocations: 7.969 kB / 444.6 MB, free: 2.652 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.905e-05/0.09892, allocations: 4 kB / 444.6 MB, free: 2.648 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.09893, allocations: 4 kB / 444.6 MB, free: 2.645 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003408/0.09927, allocations: 115.9 kB / 444.7 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007849/0.1001, allocations: 460.3 kB / 445.2 MB, free: 2.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005596/0.1006, allocations: 190.5 kB / 445.4 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001978/0.1008, allocations: 76.72 kB / 445.5 MB, free: 1.758 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.1009, allocations: 8.141 kB / 445.5 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.855e-05/0.1009, allocations: 42.56 kB / 445.5 MB, free: 1.699 MB / 318.1 MB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.1009, allocations: 0 / 445.5 MB, free: 1.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=9): time 0.001425/0.1024, allocations: 0.5602 MB / 446.1 MB, free: 1.086 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.067e-05/0.1024, allocations: 106.8 kB / 446.2 MB, free: 0.957 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.1025, allocations: 163.6 kB / 446.3 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.1026, allocations: 29.7 kB / 446.4 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.806e-05/0.1026, allocations: 112 kB / 446.5 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.894e-05/0.1027, allocations: 31.55 kB / 446.5 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.857e-05/0.1027, allocations: 33.64 kB / 446.5 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.018e-05/0.1028, allocations: 322.8 kB / 446.8 MB, free: 252 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002074/0.103, allocations: 76.8 kB / 446.9 MB, free: 172 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002081/0.1032, allocations: 94.53 kB / 447 MB, free: 68 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004162/0.1036, allocations: 140.7 kB / 447.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.1036, allocations: 0 / 447.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004926/0.1041, allocations: 193.4 kB / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1042, allocations: 4.938 kB / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-06/0.1042, allocations: 0 / 447.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.1042, allocations: 7.938 kB / 447.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001912/0.1044, allocations: 35.91 kB / 447.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.1044, allocations: 0 / 447.4 MB, free: 15.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.1046, allocations: 27.97 kB / 447.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.1046, allocations: 0 / 447.4 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0001438/0.1047, allocations: 124.1 kB / 447.5 MB, free: 15.53 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0001084/0.1048, allocations: 54.55 kB / 447.6 MB, free: 15.47 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0001942/0.105, allocations: 85.19 kB / 447.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.62e-07/0.105, allocations: 0 / 447.7 MB, free: 15.38 MB / 334.1 MB Notification: Performance of matching and sorting (n=10) (initialization_lambda0): time 0.0002391/0.1053, allocations: 117.6 kB / 447.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.853e-06/0.1053, allocations: 4 kB / 447.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.1053, allocations: 0 / 447.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-06/0.1053, allocations: 3.938 kB / 447.8 MB, free: 15.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.296e-05/0.1054, allocations: 23.97 kB / 447.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.366e-06/0.1054, allocations: 11.94 kB / 447.8 MB, free: 15.22 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.171e-05/0.1055, allocations: 11.98 kB / 447.8 MB, free: 15.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.509e-06/0.1055, allocations: 0 / 447.8 MB, free: 15.21 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * 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.0001016/0.1057, allocations: 188.2 kB / 448 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.221e-05/0.1057, allocations: 15.81 kB / 448 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.911e-05/0.1058, allocations: 17.41 kB / 448.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.1058, allocations: 3.938 kB / 448.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1058, allocations: 0 / 448.1 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1058, allocations: 7.984 kB / 448.1 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008741/0.1067, allocations: 0.5075 MB / 448.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1067, allocations: 3.938 kB / 448.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.1069, allocations: 39.89 kB / 448.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1069, allocations: 4 kB / 448.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.125e-05/0.1069, allocations: 0 / 448.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1069, allocations: 0 / 448.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.1069, allocations: 0 / 448.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007831/0.1077, allocations: 371.9 kB / 449 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.424e-05/0.1078, allocations: 93.03 kB / 449.1 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/0.1078, allocations: 4 kB / 449.1 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002718/0.1081, allocations: 35.95 kB / 449.1 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.664e-05/0.1081, allocations: 7.984 kB / 449.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.1082, allocations: 4.188 kB / 449.1 MB, free: 13.82 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.763e-05/0.1083, allocations: 132.3 kB / 449.3 MB, free: 13.69 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1083, allocations: 3.938 kB / 449.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003045/0.1086, allocations: 36 kB / 449.3 MB, free: 13.65 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealDerivative.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * 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.001029/0.1096, allocations: 0.9004 MB / 450.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005991/0.1102, allocations: 199.8 kB / 450.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/0.1102, allocations: 4 kB / 450.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002173/0.1105, allocations: 75.94 kB / 450.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004678/0.1109, allocations: 43.11 kB / 450.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002695/0.1136, allocations: 1.943 MB / 452.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002632/0.1139, allocations: 0.7085 MB / 453.2 MB, free: 9.648 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.344e-05/0.114, allocations: 17.02 kB / 453.2 MB, free: 9.633 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.018e-05/0.1141, allocations: 47.42 kB / 453.2 MB, free: 9.586 MB / 334.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1141, allocations: 0 / 453.2 MB, free: 9.586 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02113/0.1353, allocations: 3.842 MB / 457.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.031/8.166, allocations: 8.266 kB / 457.1 MB, free: 5.738 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_3_2_3_ModelicaTest_Blocks_Limiters.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Limiters/Limiters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Limiters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches