Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001353/0.001353, allocations: 117 kB / 18.49 MB, free: 4.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 212.7 kB / 21.45 MB, free: 1.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2587/0.2587, allocations: 46.92 MB / 357.7 MB, free: 10.19 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002166/0.002166, allocations: 83.86 kB / 0.4916 GB, free: 7.711 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1253/0.1275, allocations: 66.05 MB / 0.5561 GB, free: 5.531 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.00234/0.1299, allocations: 0.8122 MB / 0.5569 GB, free: 4.715 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001986/0.1301, allocations: 47.83 kB / 0.557 GB, free: 4.668 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.376e-05/0.1301, allocations: 0 / 0.557 GB, free: 4.668 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001141/0.1302, allocations: 7.922 kB / 0.557 GB, free: 4.66 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.178e-05/0.1303, allocations: 11.92 kB / 0.557 GB, free: 4.648 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001121/0.1304, allocations: 15.98 kB / 0.557 GB, free: 4.633 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001172/0.1305, allocations: 35.86 kB / 0.5571 GB, free: 4.598 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.696e-05/0.1306, allocations: 11.98 kB / 0.5571 GB, free: 4.586 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.75e-05/0.1306, allocations: 15.94 kB / 0.5571 GB, free: 4.57 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.523e-05/0.1307, allocations: 15.92 kB / 0.5571 GB, free: 4.555 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.1307, allocations: 4 kB / 0.5571 GB, free: 4.551 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.738e-06/0.1307, allocations: 4 kB / 0.5571 GB, free: 4.547 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.16e-05/0.1307, allocations: 7.984 kB / 0.5571 GB, free: 4.539 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.19e-05/0.1307, allocations: 19.86 kB / 0.5571 GB, free: 4.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000103/0.1308, allocations: 35.78 kB / 0.5572 GB, free: 4.484 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.1308, allocations: 0 / 0.5572 GB, free: 4.484 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1308, allocations: 0 / 0.5572 GB, free: 4.484 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.049e-06/0.1308, allocations: 0 / 0.5572 GB, free: 4.484 MB / 414.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.0004696/0.1313, allocations: 359.3 kB / 0.5575 GB, free: 4.082 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.1314, allocations: 8.031 kB / 0.5575 GB, free: 4.074 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.811e-05/0.1314, allocations: 4.188 kB / 0.5575 GB, free: 4.07 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.304e-05/0.1314, allocations: 34.73 kB / 0.5576 GB, free: 4.027 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.578e-05/0.1314, allocations: 4.938 kB / 0.5576 GB, free: 4.023 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002422/0.1317, allocations: 180.3 kB / 0.5577 GB, free: 3.809 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.4e-05/0.1317, allocations: 4.375 kB / 0.5577 GB, free: 3.805 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.961e-05/0.1317, allocations: 4.375 kB / 0.5577 GB, free: 3.801 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001284/0.1318, allocations: 57.98 kB / 0.5578 GB, free: 3.738 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.1318, allocations: 0 / 0.5578 GB, free: 3.738 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.362e-05/0.1319, allocations: 15.88 kB / 0.5578 GB, free: 3.723 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.1319, allocations: 0 / 0.5578 GB, free: 3.723 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.965e-05/0.1319, allocations: 15.98 kB / 0.5578 GB, free: 3.707 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005607/0.1325, allocations: 284.7 kB / 0.5581 GB, free: 3.379 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.553e-05/0.1325, allocations: 26.52 kB / 0.5581 GB, free: 3.344 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.004e-05/0.1326, allocations: 12.92 kB / 0.5581 GB, free: 3.328 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.743e-06/0.1326, allocations: 0 / 0.5581 GB, free: 3.328 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.477e-05/0.1327, allocations: 55.41 kB / 0.5582 GB, free: 3.262 MB / 414.1 MB Notification: Performance of pre-optimization done (n=3): time 1.002e-06/0.1327, allocations: 0 / 0.5582 GB, free: 3.262 MB / 414.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001752/0.1328, allocations: 57.58 kB / 0.5582 GB, free: 3.199 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.1329, allocations: 51.41 kB / 0.5583 GB, free: 3.137 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.133, allocations: 125.7 kB / 0.5584 GB, free: 3.004 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.133, allocations: 29.7 kB / 0.5584 GB, free: 2.969 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.098e-05/0.1331, allocations: 92.08 kB / 0.5585 GB, free: 2.875 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.415e-05/0.1331, allocations: 12.02 kB / 0.5585 GB, free: 2.863 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.302e-05/0.1331, allocations: 17.72 kB / 0.5586 GB, free: 2.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1333, allocations: 310.8 kB / 0.5589 GB, free: 2.527 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.315e-05/0.1333, allocations: 11.98 kB / 0.5589 GB, free: 2.516 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.356e-05/0.1333, allocations: 21.89 kB / 0.5589 GB, free: 2.488 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.544e-05/0.1334, allocations: 29.66 kB / 0.5589 GB, free: 2.453 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1334, allocations: 0 / 0.5589 GB, free: 2.453 MB / 414.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.085e-05/0.1335, allocations: 49.69 kB / 0.559 GB, free: 2.398 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.1335, allocations: 8 kB / 0.559 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.1335, allocations: 0 / 0.559 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.1335, allocations: 0 / 0.559 GB, free: 2.391 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.334e-05/0.1335, allocations: 7.938 kB / 0.559 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1335, allocations: 3.984 kB / 0.559 GB, free: 2.379 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.473e-05/0.1336, allocations: 15.92 kB / 0.559 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-06/0.1336, allocations: 4 kB / 0.559 GB, free: 2.359 MB / 414.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.747e-05/0.1337, allocations: 105.8 kB / 0.5591 GB, free: 2.246 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.776e-06/0.1337, allocations: 4 kB / 0.5591 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.411e-05/0.1337, allocations: 7.906 kB / 0.5591 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.1337, allocations: 4.375 kB / 0.5591 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1337, allocations: 0 / 0.5591 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1337, allocations: 3.938 kB / 0.5591 GB, free: 2.223 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003108/0.134, allocations: 302.5 kB / 0.5594 GB, free: 1.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.134, allocations: 3.938 kB / 0.5594 GB, free: 1.867 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.766e-05/0.1341, allocations: 4 kB / 0.5594 GB, free: 1.863 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1341, allocations: 0 / 0.5594 GB, free: 1.863 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.1341, allocations: 3.938 kB / 0.5594 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1341, allocations: 0 / 0.5594 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1341, allocations: 0 / 0.5594 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001563/0.1342, allocations: 151.5 kB / 0.5596 GB, free: 1.695 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.744e-05/0.1343, allocations: 81.06 kB / 0.5596 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.379e-05/0.1343, allocations: 8 kB / 0.5596 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.813e-05/0.1343, allocations: 8.031 kB / 0.5597 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.315e-05/0.1344, allocations: 0 / 0.5597 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.328e-06/0.1344, allocations: 11.92 kB / 0.5597 GB, free: 1.57 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.197e-05/0.1344, allocations: 91.22 kB / 0.5598 GB, free: 1.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1344, allocations: 0 / 0.5598 GB, free: 1.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000212/0.1347, allocations: 8 kB / 0.5598 GB, free: 1.473 MB / 414.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.0004748/0.1351, allocations: 0.6854 MB / 0.5604 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.979e-05/0.1352, allocations: 27.91 kB / 0.5605 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1352, allocations: 0 / 0.5605 GB, free: 0.7344 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.744e-05/0.1352, allocations: 4 kB / 0.5605 GB, free: 0.7305 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.1355, allocations: 11.94 kB / 0.5605 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001271/0.1368, allocations: 1.287 MB / 0.5617 GB, free: 15.35 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003391/0.1372, allocations: 0.6807 MB / 0.5624 GB, free: 14.64 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.334e-05/0.1372, allocations: 7.984 kB / 0.5624 GB, free: 14.63 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.904e-05/0.1372, allocations: 11.72 kB / 0.5624 GB, free: 14.62 MB / 430.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1372, allocations: 7.938 kB / 0.5624 GB, free: 14.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.155, allocations: 1.598 MB / 0.564 GB, free: 13.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.596/7.751, allocations: 6.5 kB / 0.564 GB, free: 13.11 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.800112114986405]