Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.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.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",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.001342/0.001342, allocations: 105.4 kB / 16.4 MB, free: 6.469 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.001298/0.001299, allocations: 188.2 kB / 17.34 MB, free: 5.719 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.434/1.434, allocations: 205.1 MB / 223.2 MB, free: 12.2 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.2158/0.2158, allocations: 43.52 MB / 314.1 MB, free: 448 kB / 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.002003/0.002003, allocations: 65.47 kB / 441.3 MB, free: 6.164 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1097, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003552/0.1133, allocations: 1.636 MB / 0.489 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.1146, allocations: 0.5967 MB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.1147, allocations: 4 kB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.1149, allocations: 11.86 kB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.336e-05/0.115, allocations: 11.81 kB / 0.4896 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003945/0.1154, allocations: 103.8 kB / 0.4897 GB, free: 9.922 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000182/0.1156, allocations: 111.7 kB / 0.4898 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001361/0.1157, allocations: 35.86 kB / 0.4898 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.187e-05/0.1158, allocations: 43.84 kB / 0.4899 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.004e-05/0.1159, allocations: 43.83 kB / 0.4899 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.573e-05/0.1159, allocations: 8 kB / 0.4899 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.95e-05/0.1159, allocations: 8 kB / 0.4899 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.408e-05/0.116, allocations: 23.91 kB / 0.49 GB, free: 9.652 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.094e-05/0.116, allocations: 51.67 kB / 0.49 GB, free: 9.602 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001751/0.1162, allocations: 87.58 kB / 0.4901 GB, free: 9.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.1162, allocations: 0 / 0.4901 GB, free: 9.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1162, allocations: 0 / 0.4901 GB, free: 9.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1163, allocations: 0 / 0.4901 GB, free: 9.516 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006925/0.1169, allocations: 411.1 kB / 0.4905 GB, free: 9.066 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.117, allocations: 15.89 kB / 0.4905 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.338e-05/0.1171, allocations: 42.73 kB / 0.4905 GB, free: 9 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.658e-05/0.1171, allocations: 8.891 kB / 0.4905 GB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002983/0.1174, allocations: 204.1 kB / 0.4907 GB, free: 8.754 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.1174, allocations: 8.359 kB / 0.4907 GB, free: 8.746 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.1175, allocations: 8.375 kB / 0.4908 GB, free: 8.738 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002996/0.1178, allocations: 105.8 kB / 0.4909 GB, free: 8.629 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.1178, allocations: 0 / 0.4909 GB, free: 8.629 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.5e-05/0.1178, allocations: 4 kB / 0.4909 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/0.1178, allocations: 7.984 kB / 0.4909 GB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001804/0.118, allocations: 43.97 kB / 0.4909 GB, free: 8.574 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007682/0.1188, allocations: 400.4 kB / 0.4913 GB, free: 8.133 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003578/0.1192, allocations: 106.5 kB / 0.4914 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.1193, allocations: 32.83 kB / 0.4914 GB, free: 7.984 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.1193, allocations: 7.984 kB / 0.4914 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002777/0.1196, allocations: 99.36 kB / 0.4915 GB, free: 7.867 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.903e-06/0.1196, allocations: 0 / 0.4915 GB, free: 7.867 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005029/0.1201, allocations: 141.5 kB / 0.4917 GB, free: 7.723 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.1202, allocations: 59.39 kB / 0.4917 GB, free: 7.652 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.1204, allocations: 149.8 kB / 0.4919 GB, free: 7.496 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.1204, allocations: 29.7 kB / 0.4919 GB, free: 7.461 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.321e-05/0.1205, allocations: 96.12 kB / 0.492 GB, free: 7.363 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.047e-05/0.1205, allocations: 23.94 kB / 0.492 GB, free: 7.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-05/0.1205, allocations: 33.7 kB / 0.492 GB, free: 7.301 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.1207, allocations: 318.8 kB / 0.4923 GB, free: 6.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.1208, allocations: 39.98 kB / 0.4924 GB, free: 6.941 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001283/0.121, allocations: 49.69 kB / 0.4924 GB, free: 6.887 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000217/0.1212, allocations: 77.61 kB / 0.4925 GB, free: 6.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1212, allocations: 4 kB / 0.4925 GB, free: 6.801 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002943/0.1215, allocations: 113.5 kB / 0.4926 GB, free: 6.684 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.1215, allocations: 7.938 kB / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1216, allocations: 288 / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.1216, allocations: 32 / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.1217, allocations: 23.98 kB / 0.4926 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.1217, allocations: 3.938 kB / 0.4926 GB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.435e-05/0.1218, allocations: 19.94 kB / 0.4927 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.136e-05/0.1218, allocations: 11.94 kB / 0.4927 GB, free: 6.617 MB / 382.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: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * 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.0001034/0.1219, allocations: 117.8 kB / 0.4928 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.172e-05/0.122, allocations: 15.88 kB / 0.4928 GB, free: 6.477 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.279e-05/0.122, allocations: 20.72 kB / 0.4928 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.122, allocations: 0 / 0.4928 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.122, allocations: 0 / 0.4928 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.122, allocations: 0 / 0.4928 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005489/0.1226, allocations: 394.4 kB / 0.4932 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.1226, allocations: 0 / 0.4932 GB, free: 6.012 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.516e-05/0.1227, allocations: 12 kB / 0.4932 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1227, allocations: 0 / 0.4932 GB, free: 6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.1227, allocations: 11.92 kB / 0.4932 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1227, allocations: 0 / 0.4932 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1227, allocations: 0 / 0.4932 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004701/0.1232, allocations: 251.4 kB / 0.4935 GB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/0.1233, allocations: 85.06 kB / 0.4935 GB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.1233, allocations: 4 kB / 0.4935 GB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001422/0.1235, allocations: 15.97 kB / 0.4936 GB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.445e-05/0.1235, allocations: 19.98 kB / 0.4936 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.1235, allocations: 4 kB / 0.4936 GB, free: 5.582 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.915e-05/0.1236, allocations: 115.9 kB / 0.4937 GB, free: 5.469 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1236, allocations: 0 / 0.4937 GB, free: 5.469 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002306/0.1239, allocations: 19.94 kB / 0.4937 GB, free: 5.449 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0007731/0.1247, allocations: 0.7788 MB / 0.4945 GB, free: 4.645 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003013/0.125, allocations: 88.5 kB / 0.4946 GB, free: 4.559 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.125, allocations: 0 / 0.4946 GB, free: 4.559 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001354/0.1251, allocations: 43.92 kB / 0.4946 GB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.1254, allocations: 18.64 kB / 0.4946 GB, free: 4.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002163/0.1276, allocations: 1.657 MB / 0.4962 GB, free: 2.758 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/0.128, allocations: 0.6963 MB / 0.4969 GB, free: 2.035 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.938e-05/0.128, allocations: 12.48 kB / 0.4969 GB, free: 2.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.922e-05/0.1281, allocations: 35.42 kB / 0.497 GB, free: 1.984 MB / 382.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1281, allocations: 0 / 0.497 GB, free: 1.984 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02524/0.1533, allocations: 2.633 MB / 0.4995 GB, free: 15.35 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.914/8.067, allocations: 7.797 kB / 0.4995 GB, free: 15.34 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches