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.0008999/0.0009, allocations: 103 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008104/0.0008106, allocations: 185.4 kB / 16.92 MB, free: 6.676 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.475/1.475, allocations: 205.4 MB / 223.1 MB, free: 5.688 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3684/0.3684, allocations: 43.58 MB / 315 MB, free: 8.691 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.0005284/0.0005284, allocations: 16.56 kB / 384.7 MB, free: 7.578 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.125, allocations: 58.86 MB / 443.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001477/0.1265, allocations: 0.5419 MB / 444.1 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002389/0.1268, allocations: 47.89 kB / 444.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.184e-05/0.1269, allocations: 0 / 444.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001356/0.127, allocations: 7.875 kB / 444.1 MB, free: 12.02 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.833e-05/0.1271, allocations: 7.938 kB / 444.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001512/0.1272, allocations: 15.97 kB / 444.1 MB, free: 12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001275/0.1274, allocations: 35.92 kB / 444.2 MB, free: 11.96 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.1275, allocations: 20.25 kB / 444.2 MB, free: 11.94 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.973e-05/0.1276, allocations: 7.938 kB / 444.2 MB, free: 11.93 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.77e-05/0.1276, allocations: 11.92 kB / 444.2 MB, free: 11.92 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.15e-05/0.1277, allocations: 8 kB / 444.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.409e-05/0.1277, allocations: 0 / 444.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.371e-05/0.1277, allocations: 3.938 kB / 444.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.665e-05/0.1278, allocations: 37.64 kB / 444.3 MB, free: 11.87 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001026/0.1279, allocations: 39.75 kB / 444.3 MB, free: 11.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1279, allocations: 0 / 444.3 MB, free: 11.83 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1279, allocations: 3.938 kB / 444.3 MB, free: 11.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.1279, allocations: 0 / 444.3 MB, free: 11.82 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.0004955/0.1284, allocations: 343.4 kB / 444.6 MB, free: 11.44 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.1285, allocations: 12.03 kB / 444.7 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.137e-05/0.1286, allocations: 34.75 kB / 444.7 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.847e-05/0.1286, allocations: 0.9375 kB / 444.7 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.1289, allocations: 188.2 kB / 444.9 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.1289, allocations: 384 / 444.9 MB, free: 11.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.1289, allocations: 8.375 kB / 444.9 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000155/0.1291, allocations: 54.23 kB / 444.9 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.193e-05/0.1291, allocations: 3.938 kB / 444.9 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.1291, allocations: 3.984 kB / 444.9 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.1291, allocations: 0 / 444.9 MB, free: 11.09 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.593e-05/0.1292, allocations: 16 kB / 445 MB, free: 11.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006999/0.1299, allocations: 292.7 kB / 445.3 MB, free: 10.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.287e-05/0.13, allocations: 18.58 kB / 445.3 MB, free: 10.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.9e-05/0.13, allocations: 12.92 kB / 445.3 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.1301, allocations: 0 / 445.3 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001536/0.1302, allocations: 59.34 kB / 445.3 MB, free: 10.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.282e-06/0.1302, allocations: 0 / 445.3 MB, free: 10.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001977/0.1304, allocations: 53.77 kB / 445.4 MB, free: 10.56 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.897e-05/0.1305, allocations: 51.41 kB / 445.4 MB, free: 10.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001463/0.1307, allocations: 121.8 kB / 445.6 MB, free: 10.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.244e-05/0.1307, allocations: 25.7 kB / 445.6 MB, free: 10.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.796e-05/0.1308, allocations: 88.08 kB / 445.7 MB, free: 10.25 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.1308, allocations: 11.91 kB / 445.7 MB, free: 10.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.889e-05/0.1309, allocations: 17.66 kB / 445.7 MB, free: 10.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.131, allocations: 326.8 kB / 446 MB, free: 9.887 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.408e-05/0.1311, allocations: 4 kB / 446 MB, free: 9.883 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.59e-05/0.1311, allocations: 21.72 kB / 446 MB, free: 9.855 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.864e-05/0.1312, allocations: 25.7 kB / 446.1 MB, free: 9.824 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1312, allocations: 0 / 446.1 MB, free: 9.824 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001283/0.1314, allocations: 57.92 kB / 446.1 MB, free: 9.762 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.595e-05/0.1314, allocations: 4 kB / 446.1 MB, free: 9.758 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.1314, allocations: 3.984 kB / 446.1 MB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.1315, allocations: 0 / 446.1 MB, free: 9.754 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.132e-05/0.1315, allocations: 11.94 kB / 446.1 MB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.112e-06/0.1315, allocations: 0 / 446.1 MB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.59e-05/0.1316, allocations: 11.88 kB / 446.2 MB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.1316, allocations: 4 kB / 446.2 MB, free: 9.727 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 0.0001188/0.1317, allocations: 109.8 kB / 446.3 MB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.1318, allocations: 11.97 kB / 446.3 MB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.978e-05/0.1318, allocations: 11.89 kB / 446.3 MB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1318, allocations: 0 / 446.3 MB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.1318, allocations: 0 / 446.3 MB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.1318, allocations: 3.938 kB / 446.3 MB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004008/0.1322, allocations: 294.5 kB / 446.6 MB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.1323, allocations: 0 / 446.6 MB, free: 9.238 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.23e-05/0.1323, allocations: 7.984 kB / 446.6 MB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1323, allocations: 4 kB / 446.6 MB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.1323, allocations: 3.938 kB / 446.6 MB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.88e-06/0.1324, allocations: 0 / 446.6 MB, free: 9.223 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1324, allocations: 3.938 kB / 446.6 MB, free: 9.219 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002163/0.1326, allocations: 147.6 kB / 446.7 MB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.141e-05/0.1327, allocations: 81.02 kB / 446.8 MB, free: 8.961 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.279e-05/0.1327, allocations: 3.938 kB / 446.8 MB, free: 8.957 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.749e-05/0.1328, allocations: 11.98 kB / 446.8 MB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.356e-05/0.1329, allocations: 4.062 kB / 446.8 MB, free: 8.941 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.642e-06/0.1329, allocations: 0 / 446.8 MB, free: 8.941 MB / 382.1 MB Notification: Performance of sorting global known variables: time 9.545e-05/0.133, allocations: 91.27 kB / 446.9 MB, free: 8.852 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.133, allocations: 0 / 446.9 MB, free: 8.852 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004005/0.1334, allocations: 8 kB / 446.9 MB, free: 8.844 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.0006506/0.1341, allocations: 0.6969 MB / 447.6 MB, free: 8.121 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 9.985e-05/0.1342, allocations: 19.92 kB / 447.7 MB, free: 8.102 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1342, allocations: 0 / 447.7 MB, free: 8.102 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.94e-05/0.1342, allocations: 15.94 kB / 447.7 MB, free: 8.086 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000409/0.1346, allocations: 12.27 kB / 447.7 MB, free: 8.074 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001476/0.1361, allocations: 1.303 MB / 449 MB, free: 6.684 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.1365, allocations: 0.6848 MB / 449.7 MB, free: 5.973 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.778e-05/0.1365, allocations: 4.188 kB / 449.7 MB, free: 5.969 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.611e-05/0.1366, allocations: 15.44 kB / 449.7 MB, free: 5.957 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1366, allocations: 0 / 449.7 MB, free: 5.957 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01934/0.1559, allocations: 1.329 MB / 451 MB, free: 4.645 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002985/0.1563, allocations: 198.1 kB / 451.2 MB, free: 4.387 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.726/1.883, allocations: 0 / 451.2 MB, free: 4.387 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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches