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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 80.48 kB / 19.92 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000828/0.000828, allocations: 169.9 kB / 23.21 MB, free: 1.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.834/0.834, allocations: 158.6 MB / 185 MB, free: 3.023 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1276/0.1276, allocations: 32.37 MB / 269.6 MB, free: 14.97 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 406.8 MB, free: 2.258 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.127e-05/2.288e-05, allocations: 10.08 kB / 406.8 MB, free: 2.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002145/0.002168, allocations: 1.596 MB / 408.4 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007178/0.002886, allocations: 0.5074 MB / 408.9 MB, free: 132 kB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.035e-05/0.002976, allocations: 0 / 408.9 MB, free: 132 kB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001294/0.003105, allocations: 7.875 kB / 408.9 MB, free: 124 kB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.084e-05/0.003156, allocations: 15.86 kB / 409 MB, free: 108 kB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002049/0.003361, allocations: 39.83 kB / 409 MB, free: 68 kB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001367/0.003498, allocations: 83.78 kB / 409.1 MB, free: 15.98 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.003623, allocations: 20.12 kB / 409.1 MB, free: 15.96 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.575e-05/0.003689, allocations: 43.91 kB / 409.1 MB, free: 15.92 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.858e-05/0.003748, allocations: 27.89 kB / 409.2 MB, free: 15.89 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 2.275e-05/0.003771, allocations: 8 kB / 409.2 MB, free: 15.89 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.065e-05/0.003781, allocations: 8 kB / 409.2 MB, free: 15.88 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 2.21e-05/0.003803, allocations: 11.94 kB / 409.2 MB, free: 15.87 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 3.507e-05/0.003838, allocations: 23.92 kB / 409.2 MB, free: 15.84 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001283/0.003967, allocations: 87.62 kB / 409.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.094e-06/0.003969, allocations: 0 / 409.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.003969, allocations: 0 / 409.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.003974, allocations: 0 / 409.3 MB, free: 15.76 MB / 394.7 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.0004235/0.004397, allocations: 318.9 kB / 409.6 MB, free: 15.41 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.606e-05/0.004433, allocations: 12.03 kB / 409.6 MB, free: 15.4 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.104e-05/0.004464, allocations: 38.75 kB / 409.7 MB, free: 15.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.141e-05/0.004496, allocations: 16.84 kB / 409.7 MB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002005/0.004696, allocations: 141.5 kB / 409.8 MB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.13e-05/0.004707, allocations: 8.312 kB / 409.8 MB, free: 15.17 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.021e-05/0.004728, allocations: 8.375 kB / 409.8 MB, free: 15.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001194/0.004847, allocations: 74.23 kB / 409.9 MB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.004856, allocations: 4.125 kB / 409.9 MB, free: 15.08 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.004866, allocations: 4.125 kB / 409.9 MB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.004871, allocations: 0 / 409.9 MB, free: 15.07 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.483e-05/0.004936, allocations: 47.91 kB / 410 MB, free: 15.03 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004361/0.005372, allocations: 303.8 kB / 410.3 MB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.939e-05/0.005462, allocations: 54.48 kB / 410.3 MB, free: 14.62 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.451e-05/0.005486, allocations: 16.92 kB / 410.3 MB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.346e-05/0.005499, allocations: 0 / 410.3 MB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001035/0.005603, allocations: 67.39 kB / 410.4 MB, free: 14.53 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/0.005604, allocations: 0 / 410.4 MB, free: 14.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001706/0.005775, allocations: 89.62 kB / 410.5 MB, free: 14.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.289e-05/0.005807, allocations: 59.34 kB / 410.5 MB, free: 14.36 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.343e-05/0.005891, allocations: 137.8 kB / 410.7 MB, free: 14.22 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.005905, allocations: 33.69 kB / 410.7 MB, free: 14.18 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.276e-05/0.005947, allocations: 100.1 kB / 410.8 MB, free: 14.08 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.005966, allocations: 19.84 kB / 410.8 MB, free: 14.06 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.111e-05/0.005997, allocations: 21.72 kB / 410.8 MB, free: 14.03 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.464e-05/0.006072, allocations: 322.8 kB / 411.2 MB, free: 13.71 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.593e-05/0.006097, allocations: 12 kB / 411.2 MB, free: 13.7 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.621e-05/0.006134, allocations: 38.56 kB / 411.2 MB, free: 13.65 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.652e-05/0.00619, allocations: 58.81 kB / 411.3 MB, free: 13.58 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.006193, allocations: 4 kB / 411.3 MB, free: 13.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 9.599e-05/0.006289, allocations: 93.55 kB / 411.4 MB, free: 13.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.006301, allocations: 8 kB / 411.4 MB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.006306, allocations: 0 / 411.4 MB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.006316, allocations: 0 / 411.4 MB, free: 13.47 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.305e-05/0.006369, allocations: 8 kB / 411.4 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.006374, allocations: 3.938 kB / 411.4 MB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.966e-05/0.006414, allocations: 11.92 kB / 411.4 MB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.266e-06/0.006422, allocations: 4 kB / 411.4 MB, free: 13.45 MB / 394.7 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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$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 6.38e-05/0.006486, allocations: 125.8 kB / 411.5 MB, free: 13.31 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/0.006496, allocations: 7.953 kB / 411.5 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.196e-05/0.006517, allocations: 12.78 kB / 411.5 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.006519, allocations: 192 / 411.5 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.006524, allocations: 7.875 kB / 411.5 MB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.006529, allocations: 7.922 kB / 411.6 MB, free: 13.28 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002357/0.006765, allocations: 309.6 kB / 411.9 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.006765, allocations: 0 / 411.9 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.568e-05/0.006801, allocations: 4 kB / 411.9 MB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.006804, allocations: 3.938 kB / 411.9 MB, free: 12.92 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-06/0.006813, allocations: 12 kB / 411.9 MB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.006814, allocations: 0 / 411.9 MB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.006815, allocations: 0 / 411.9 MB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001387/0.006954, allocations: 183.5 kB / 412.1 MB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.134e-05/0.006965, allocations: 11.94 kB / 412.1 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.346e-05/0.006979, allocations: 7.969 kB / 412.1 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.53e-05/0.007024, allocations: 0 / 412.1 MB, free: 12.7 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.388e-05/0.007058, allocations: 7.984 kB / 412.1 MB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-06/0.007065, allocations: 8 kB / 412.1 MB, free: 12.68 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.787e-05/0.007113, allocations: 114.6 kB / 412.2 MB, free: 12.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007113, allocations: 4.062 kB / 412.2 MB, free: 12.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001529/0.007266, allocations: 12 kB / 412.2 MB, free: 12.55 MB / 394.7 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,fallingEdge.not_u,booleanPulse.pulseStart) * 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.000301/0.007567, allocations: 0.7163 MB / 412.9 MB, free: 11.81 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.631e-05/0.007663, allocations: 51.91 kB / 413 MB, free: 11.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.007665, allocations: 0 / 413 MB, free: 11.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.341e-05/0.007698, allocations: 23.92 kB / 413 MB, free: 11.73 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.007922, allocations: 12.62 kB / 413 MB, free: 11.72 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.008986, allocations: 1.535 MB / 414.6 MB, free: 10.09 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.821e-05/0.009034, allocations: 79.33 kB / 414.6 MB, free: 9.992 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 3.277e-05/0.009067, allocations: 12.47 kB / 414.6 MB, free: 9.98 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.568e-05/0.009112, allocations: 28.44 kB / 414.7 MB, free: 9.953 MB / 394.7 MB Notification: Performance of SimCode: time 3.6e-07/0.009113, allocations: 112 / 414.7 MB, free: 9.953 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01459/0.02371, allocations: 2.992 MB / 417.7 MB, free: 6.949 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.555/6.579, allocations: 0 / 417.7 MB, free: 6.949 MB / 394.7 MB " [Timeout remaining time 653] (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 --stepSize=0.000997805 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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: 8.4309804411605]