Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",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.001155/0.001155, allocations: 103 kB / 16.4 MB, free: 6.5 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.001196/0.001196, allocations: 192.2 kB / 17.34 MB, free: 5.742 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.341/1.341, allocations: 205.1 MB / 223.2 MB, free: 12.23 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.2031/0.2031, allocations: 43.52 MB / 314.1 MB, free: 464 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.001531/0.001531, allocations: 65.47 kB / 441.3 MB, free: 6.168 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1027/0.1042, allocations: 57.79 MB / 499.1 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002387/0.1066, allocations: 0.8172 MB / 499.9 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002695/0.1069, allocations: 55.81 kB / 499.9 MB, free: 11.44 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.582e-05/0.1071, allocations: 4 kB / 500 MB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.1072, allocations: 11.81 kB / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.208e-05/0.1072, allocations: 0 / 500 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000141/0.1074, allocations: 19.92 kB / 500 MB, free: 11.4 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.1075, allocations: 39.91 kB / 0.4883 GB, free: 11.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.1077, allocations: 19.97 kB / 0.4883 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.94e-05/0.1077, allocations: 11.94 kB / 0.4883 GB, free: 11.33 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.544e-05/0.1078, allocations: 15.92 kB / 0.4883 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.52e-05/0.1078, allocations: 0 / 0.4883 GB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.274e-05/0.1078, allocations: 8 kB / 0.4884 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.195e-05/0.1078, allocations: 7.938 kB / 0.4884 GB, free: 11.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.204e-05/0.1079, allocations: 11.94 kB / 0.4884 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.108, allocations: 47.81 kB / 0.4884 GB, free: 11.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.108, allocations: 0 / 0.4884 GB, free: 11.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.108, allocations: 0 / 0.4884 GB, free: 11.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.108, allocations: 0 / 0.4884 GB, free: 11.24 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004751/0.1085, allocations: 351.3 kB / 0.4888 GB, free: 10.85 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.1086, allocations: 11.89 kB / 0.4888 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.082e-05/0.1086, allocations: 38.75 kB / 0.4888 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.245e-05/0.1086, allocations: 4.938 kB / 0.4888 GB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002628/0.1089, allocations: 188.2 kB / 0.489 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.076e-05/0.1089, allocations: 4.375 kB / 0.489 GB, free: 10.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.02e-05/0.109, allocations: 4.375 kB / 0.489 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.1091, allocations: 50.25 kB / 0.489 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.1091, allocations: 3.938 kB / 0.489 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.1091, allocations: 0 / 0.489 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.1091, allocations: 0 / 0.489 GB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.942e-05/0.1092, allocations: 16 kB / 0.4891 GB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005196/0.1097, allocations: 296.7 kB / 0.4893 GB, free: 10.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.098e-05/0.1098, allocations: 26.5 kB / 0.4894 GB, free: 10.11 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.71e-05/0.1098, allocations: 8.922 kB / 0.4894 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.119e-05/0.1098, allocations: 7.984 kB / 0.4894 GB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.612e-05/0.1099, allocations: 51.36 kB / 0.4894 GB, free: 10.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.222e-06/0.1099, allocations: 0 / 0.4894 GB, free: 10.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001449/0.1101, allocations: 57.53 kB / 0.4895 GB, free: 9.961 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.415e-05/0.1101, allocations: 51.41 kB / 0.4895 GB, free: 9.898 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.796e-05/0.1102, allocations: 117.8 kB / 0.4897 GB, free: 9.773 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.1103, allocations: 25.7 kB / 0.4897 GB, free: 9.742 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.606e-05/0.1103, allocations: 88.14 kB / 0.4898 GB, free: 9.652 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.557e-05/0.1103, allocations: 11.84 kB / 0.4898 GB, free: 9.641 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.61e-05/0.1104, allocations: 25.64 kB / 0.4898 GB, free: 9.609 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.1105, allocations: 322.8 kB / 0.4901 GB, free: 9.285 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.874e-05/0.1105, allocations: 4 kB / 0.4901 GB, free: 9.281 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.899e-05/0.1106, allocations: 21.7 kB / 0.4901 GB, free: 9.254 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.617e-05/0.1106, allocations: 21.72 kB / 0.4902 GB, free: 9.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1106, allocations: 0 / 0.4902 GB, free: 9.227 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001014/0.1107, allocations: 65.53 kB / 0.4902 GB, free: 9.156 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.1107, allocations: 4 kB / 0.4902 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.1107, allocations: 0 / 0.4902 GB, free: 9.152 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.1108, allocations: 4 kB / 0.4902 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.309e-05/0.1108, allocations: 0 / 0.4902 GB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.1108, allocations: 4 kB / 0.4902 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.226e-05/0.1109, allocations: 3.938 kB / 0.4902 GB, free: 9.141 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.278e-06/0.1109, allocations: 0 / 0.4902 GB, free: 9.141 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 8.36e-05/0.111, allocations: 117.8 kB / 0.4903 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.573e-05/0.111, allocations: 15.89 kB / 0.4904 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.586e-05/0.111, allocations: 7.938 kB / 0.4904 GB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.111, allocations: 3.938 kB / 0.4904 GB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.111, allocations: 0 / 0.4904 GB, free: 8.98 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.111, allocations: 3.938 kB / 0.4904 GB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003038/0.1113, allocations: 294.6 kB / 0.4907 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1114, allocations: 0 / 0.4907 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.226e-05/0.1114, allocations: 4 kB / 0.4907 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.1114, allocations: 0 / 0.4907 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.059e-05/0.1114, allocations: 11.88 kB / 0.4907 GB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.1114, allocations: 4 kB / 0.4907 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1114, allocations: 384 / 0.4907 GB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001673/0.1116, allocations: 155.8 kB / 0.4908 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.63e-05/0.1117, allocations: 85.12 kB / 0.4909 GB, free: 8.344 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.1117, allocations: 3.938 kB / 0.4909 GB, free: 8.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.253e-05/0.1117, allocations: 3.938 kB / 0.4909 GB, free: 8.336 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.674e-05/0.1118, allocations: 4 kB / 0.4909 GB, free: 8.332 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.328e-06/0.1118, allocations: 0 / 0.4909 GB, free: 8.332 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.405e-05/0.1118, allocations: 95.33 kB / 0.491 GB, free: 8.238 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1119, allocations: 0 / 0.491 GB, free: 8.238 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000218/0.1121, allocations: 8 kB / 0.491 GB, free: 8.23 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0004261/0.1125, allocations: 0.6811 MB / 0.4917 GB, free: 7.523 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.948e-05/0.1126, allocations: 20 kB / 0.4917 GB, free: 7.504 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1126, allocations: 4.062 kB / 0.4917 GB, free: 7.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.329e-05/0.1127, allocations: 11.92 kB / 0.4917 GB, free: 7.488 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.113, allocations: 18.05 kB / 0.4917 GB, free: 7.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.1141, allocations: 1.302 MB / 0.493 GB, free: 6.094 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002699/0.1144, allocations: 0.6846 MB / 0.4937 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.461e-05/0.1145, allocations: 0 / 0.4937 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.218e-05/0.1145, allocations: 23.42 kB / 0.4937 GB, free: 5.359 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1145, allocations: 0 / 0.4937 GB, free: 5.359 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02022/0.1347, allocations: 1.577 MB / 0.4952 GB, free: 3.773 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.498/7.633, allocations: 12.05 kB / 0.4952 GB, free: 3.762 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,integrator.y Variables in the result:const.k,const.y,der(integrator.y),greaterEqualThreshold.threshold,greaterEqualThreshold.u,greaterEqualThreshold.y,integrator.initType,integrator.k,integrator.reset,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,time