Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",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.001286/0.001286, allocations: 105.5 kB / 16.4 MB, free: 6.445 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.001229/0.001229, allocations: 192.1 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.378/1.378, allocations: 205.1 MB / 223.2 MB, free: 12.21 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.2168/0.2168, allocations: 43.52 MB / 314.1 MB, free: 456 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.001924/0.001924, allocations: 77.47 kB / 441.3 MB, free: 6.156 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1197, allocations: 57.79 MB / 499.1 MB, free: 12.29 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00285/0.1226, allocations: 1.613 MB / 0.489 GB, free: 10.67 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008844/0.1235, allocations: 0.5191 MB / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.928e-05/0.1236, allocations: 0 / 0.4895 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.1237, allocations: 11.86 kB / 0.4895 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.274e-05/0.1238, allocations: 15.86 kB / 0.4895 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001864/0.124, allocations: 31.91 kB / 0.4895 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000145/0.1242, allocations: 83.7 kB / 0.4896 GB, free: 10 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.1243, allocations: 44.09 kB / 0.4896 GB, free: 9.957 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.673e-05/0.1244, allocations: 27.92 kB / 0.4897 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.943e-05/0.1244, allocations: 31.78 kB / 0.4897 GB, free: 9.898 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.988e-05/0.1245, allocations: 8 kB / 0.4897 GB, free: 9.891 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.467e-05/0.1245, allocations: 8 kB / 0.4897 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.603e-05/0.1245, allocations: 11.94 kB / 0.4897 GB, free: 9.871 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.245e-05/0.1246, allocations: 35.8 kB / 0.4898 GB, free: 9.836 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.1247, allocations: 83.66 kB / 0.4898 GB, free: 9.754 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1247, allocations: 0 / 0.4898 GB, free: 9.754 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1247, allocations: 0 / 0.4898 GB, free: 9.754 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.837e-06/0.1248, allocations: 0 / 0.4898 GB, free: 9.754 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005442/0.1253, allocations: 387.2 kB / 0.4902 GB, free: 9.328 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.1253, allocations: 11.89 kB / 0.4902 GB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.732e-05/0.1254, allocations: 42.73 kB / 0.4903 GB, free: 9.266 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.399e-05/0.1254, allocations: 12.84 kB / 0.4903 GB, free: 9.254 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002531/0.1257, allocations: 204.1 kB / 0.4905 GB, free: 9.016 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.1257, allocations: 8.375 kB / 0.4905 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.422e-05/0.1257, allocations: 4.375 kB / 0.4905 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001435/0.1259, allocations: 77.59 kB / 0.4906 GB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1259, allocations: 0 / 0.4906 GB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.1259, allocations: 8 kB / 0.4906 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.1259, allocations: 0 / 0.4906 GB, free: 8.918 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.484e-05/0.126, allocations: 35.97 kB / 0.4906 GB, free: 8.883 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005819/0.1266, allocations: 360.4 kB / 0.4909 GB, free: 8.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.1267, allocations: 50.44 kB / 0.491 GB, free: 8.422 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.357e-05/0.1268, allocations: 16.89 kB / 0.491 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.1268, allocations: 0 / 0.491 GB, free: 8.402 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000126/0.1269, allocations: 71.44 kB / 0.4911 GB, free: 8.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.183e-06/0.1269, allocations: 0 / 0.4911 GB, free: 8.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002288/0.1272, allocations: 97.42 kB / 0.4912 GB, free: 8.219 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.194e-05/0.1272, allocations: 51.41 kB / 0.4912 GB, free: 8.156 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001329/0.1274, allocations: 148.3 kB / 0.4914 GB, free: 8.004 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/0.1274, allocations: 29.7 kB / 0.4914 GB, free: 7.969 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.826e-05/0.1275, allocations: 100 kB / 0.4915 GB, free: 7.867 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.1275, allocations: 11.81 kB / 0.4915 GB, free: 7.855 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.934e-05/0.1276, allocations: 29.7 kB / 0.4915 GB, free: 7.82 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.1277, allocations: 326.8 kB / 0.4918 GB, free: 7.492 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.004e-05/0.1277, allocations: 12 kB / 0.4918 GB, free: 7.48 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.043e-05/0.1278, allocations: 38.56 kB / 0.4919 GB, free: 7.434 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.797e-05/0.1279, allocations: 50.52 kB / 0.4919 GB, free: 7.375 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1279, allocations: 0 / 0.4919 GB, free: 7.375 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001493/0.128, allocations: 89.52 kB / 0.492 GB, free: 7.281 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.1281, allocations: 8 kB / 0.492 GB, free: 7.273 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.1281, allocations: 3.938 kB / 0.492 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.1281, allocations: 0 / 0.492 GB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.844e-05/0.1282, allocations: 15.98 kB / 0.492 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.1282, allocations: 0 / 0.492 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.502e-05/0.1282, allocations: 8.078 kB / 0.4921 GB, free: 7.246 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.1283, allocations: 4 kB / 0.4921 GB, free: 7.242 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_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 9.591e-05/0.1284, allocations: 133.4 kB / 0.4922 GB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.649e-05/0.1284, allocations: 7.906 kB / 0.4922 GB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.491e-05/0.1284, allocations: 16.66 kB / 0.4922 GB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.1284, allocations: 0 / 0.4922 GB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1284, allocations: 0 / 0.4922 GB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1284, allocations: 0 / 0.4922 GB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003371/0.1288, allocations: 354.3 kB / 0.4925 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.1288, allocations: 0 / 0.4925 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.891e-05/0.1289, allocations: 4 kB / 0.4925 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.1289, allocations: 7.984 kB / 0.4926 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.1289, allocations: 8 kB / 0.4926 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1289, allocations: 192 / 0.4926 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1289, allocations: 0 / 0.4926 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002051/0.1291, allocations: 195.3 kB / 0.4927 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.63e-05/0.1292, allocations: 85.05 kB / 0.4928 GB, free: 6.348 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.98e-05/0.1292, allocations: 3.938 kB / 0.4928 GB, free: 6.344 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.783e-05/0.1293, allocations: 7.984 kB / 0.4928 GB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.72e-05/0.1293, allocations: 16 kB / 0.4929 GB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.1294, allocations: 3.984 kB / 0.4929 GB, free: 6.316 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.794e-05/0.1294, allocations: 103.3 kB / 0.493 GB, free: 6.215 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1294, allocations: 0 / 0.493 GB, free: 6.215 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002316/0.1297, allocations: 15.94 kB / 0.493 GB, free: 6.199 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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.0004756/0.1301, allocations: 0.7247 MB / 0.4937 GB, free: 5.449 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001341/0.1303, allocations: 51.98 kB / 0.4937 GB, free: 5.398 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1303, allocations: 0 / 0.4937 GB, free: 5.398 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.621e-05/0.1304, allocations: 27.92 kB / 0.4938 GB, free: 5.371 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.1307, allocations: 18.8 kB / 0.4938 GB, free: 5.355 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.1324, allocations: 1.525 MB / 0.4953 GB, free: 3.738 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.1327, allocations: 0.6963 MB / 0.4959 GB, free: 3.016 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.97e-05/0.1327, allocations: 8.375 kB / 0.496 GB, free: 3.008 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.06e-05/0.1328, allocations: 31.42 kB / 0.496 GB, free: 2.977 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1328, allocations: 0 / 0.496 GB, free: 2.977 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.1539, allocations: 2.263 MB / 0.4982 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.899/8.053, allocations: 12.3 kB / 0.4982 GB, free: 0.6914 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,integrator.y Variables in the result:booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,const0.k,const0.y,const1.k,const1.y,der(integrator.y),fallingEdge.pre_u_start,fallingEdge.u,fallingEdge.y,integrator.initType,integrator.k,integrator.reset,integrator.u,integrator.use_reset,integrator.use_set,integrator.y,integrator.y_start,switch.u1,switch.u2,switch.u3,switch.y,time