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.005837/0.005837, allocations: 99.86 kB / 15.87 MB, free: 6.309 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.001341/0.001341, allocations: 190.6 kB / 16.78 MB, free: 6.238 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.315/1.315, allocations: 205.1 MB / 222.6 MB, free: 4.598 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.3006/0.3006, allocations: 43.49 MB / 313.5 MB, free: 8.59 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.001315/0.001315, allocations: 70.56 kB / 382.1 MB, free: 8.617 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1013, allocations: 57.78 MB / 439.9 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002688/0.104, allocations: 0.8808 MB / 440.8 MB, free: 13.85 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002584/0.1043, allocations: 43.88 kB / 440.8 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.484e-05/0.1044, allocations: 3.938 kB / 440.8 MB, free: 13.8 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.1046, allocations: 7.938 kB / 440.8 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.516e-05/0.1047, allocations: 7.938 kB / 440.9 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001362/0.1048, allocations: 15.98 kB / 440.9 MB, free: 13.77 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000124/0.1049, allocations: 27.92 kB / 440.9 MB, free: 13.74 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001254/0.1051, allocations: 20.27 kB / 440.9 MB, free: 13.72 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.055e-05/0.1051, allocations: 11.92 kB / 440.9 MB, free: 13.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.727e-05/0.1052, allocations: 15.92 kB / 440.9 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.1052, allocations: 3.938 kB / 441 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.425e-05/0.1052, allocations: 4 kB / 441 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.249e-05/0.1052, allocations: 8 kB / 441 MB, free: 13.68 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.297e-05/0.1053, allocations: 19.86 kB / 441 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.1054, allocations: 31.84 kB / 441 MB, free: 13.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.1054, allocations: 0 / 441 MB, free: 13.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1054, allocations: 0 / 441 MB, free: 13.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.404e-06/0.1054, allocations: 0 / 441 MB, free: 13.63 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.0004694/0.1059, allocations: 351.4 kB / 441.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.106, allocations: 8.031 kB / 441.4 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.036e-05/0.106, allocations: 38.75 kB / 441.4 MB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.1061, allocations: 8.875 kB / 441.4 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002028/0.1063, allocations: 192.2 kB / 441.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.081e-05/0.1063, allocations: 384 / 441.6 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.34e-05/0.1063, allocations: 4.375 kB / 441.6 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001167/0.1064, allocations: 50.25 kB / 441.7 MB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.456e-06/0.1064, allocations: 3.938 kB / 441.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.1065, allocations: 0 / 441.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.1065, allocations: 0 / 441.7 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.667e-05/0.1065, allocations: 12 kB / 441.7 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006331/0.1072, allocations: 292.7 kB / 442 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.34e-05/0.1072, allocations: 26.58 kB / 442 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.769e-05/0.1073, allocations: 4.859 kB / 442 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/0.1073, allocations: 4.062 kB / 442 MB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001462/0.1074, allocations: 63.27 kB / 442 MB, free: 12.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.302e-06/0.1074, allocations: 4 kB / 442.1 MB, free: 12.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.000135/0.1076, allocations: 53.59 kB / 442.1 MB, free: 12.35 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.223e-05/0.1077, allocations: 55.41 kB / 442.2 MB, free: 12.29 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.081e-05/0.1077, allocations: 117.8 kB / 442.3 MB, free: 12.16 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.1078, allocations: 33.64 kB / 442.3 MB, free: 12.12 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.88e-05/0.1078, allocations: 92.2 kB / 442.4 MB, free: 12.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.438e-05/0.1079, allocations: 3.906 kB / 442.4 MB, free: 12.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.1079, allocations: 21.7 kB / 442.4 MB, free: 12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.108, allocations: 322.8 kB / 442.7 MB, free: 11.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.019e-05/0.1081, allocations: 8 kB / 442.7 MB, free: 11.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.704e-05/0.1081, allocations: 17.7 kB / 442.8 MB, free: 11.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.666e-05/0.1081, allocations: 25.72 kB / 442.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1081, allocations: 0 / 442.8 MB, free: 11.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.382e-05/0.1082, allocations: 57.53 kB / 442.8 MB, free: 11.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.1083, allocations: 4.031 kB / 442.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.1083, allocations: 4 kB / 442.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.1083, allocations: 0 / 442.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.299e-05/0.1083, allocations: 4 kB / 442.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.1083, allocations: 4 kB / 442.9 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.379e-05/0.1084, allocations: 7.875 kB / 442.9 MB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.849e-06/0.1084, allocations: 0 / 442.9 MB, free: 11.52 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.762e-05/0.1085, allocations: 117.8 kB / 443 MB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.562e-05/0.1085, allocations: 11.89 kB / 443 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.677e-05/0.1085, allocations: 11.91 kB / 443 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1086, allocations: 0 / 443 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.1086, allocations: 0 / 443 MB, free: 11.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.1086, allocations: 3.938 kB / 443 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003283/0.1089, allocations: 294.6 kB / 443.3 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1089, allocations: 0 / 443.3 MB, free: 11.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.345e-05/0.109, allocations: 4 kB / 443.3 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.109, allocations: 0 / 443.3 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.201e-05/0.109, allocations: 3.938 kB / 443.3 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.996e-06/0.109, allocations: 7.938 kB / 443.3 MB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.604e-06/0.109, allocations: 4 kB / 443.3 MB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001483/0.1092, allocations: 151.8 kB / 443.5 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-05/0.1092, allocations: 85.12 kB / 443.5 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.1092, allocations: 3.938 kB / 443.6 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.66e-05/0.1093, allocations: 48 / 443.6 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.141e-05/0.1093, allocations: 3.984 kB / 443.6 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-06/0.1094, allocations: 8 kB / 443.6 MB, free: 10.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001277/0.1095, allocations: 99.64 kB / 443.7 MB, free: 10.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1095, allocations: 0 / 443.7 MB, free: 10.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002114/0.1097, allocations: 4 kB / 443.7 MB, free: 10.62 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.0004124/0.1101, allocations: 0.6889 MB / 444.4 MB, free: 9.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 7.429e-05/0.1102, allocations: 19.94 kB / 444.4 MB, free: 9.891 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1102, allocations: 4.125 kB / 444.4 MB, free: 9.887 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 1.847e-05/0.1102, allocations: 11.94 kB / 444.4 MB, free: 9.875 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.1105, allocations: 7.984 kB / 444.4 MB, free: 9.867 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.1116, allocations: 1.292 MB / 445.7 MB, free: 8.484 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003086/0.112, allocations: 0.6926 MB / 446.4 MB, free: 7.766 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.465e-05/0.112, allocations: 3.938 kB / 446.4 MB, free: 7.762 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.481e-05/0.112, allocations: 15.44 kB / 446.4 MB, free: 7.746 MB / 382.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1121, allocations: 0 / 446.4 MB, free: 7.746 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01052/0.1226, allocations: 1.391 MB / 447.8 MB, free: 6.352 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/0.1228, allocations: 194.8 kB / 448 MB, free: 6.098 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.673/1.796, allocations: 0 / 448 MB, free: 6.098 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