Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",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.001924/0.001924, allocations: 101.9 kB / 17.06 MB, free: 6.145 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.00284/0.00284, allocations: 195 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.671/2.671, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 43.94 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5006/0.5027, allocations: 49.43 MB / 400.2 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.006401/0.5092, allocations: 1.861 MB / 402.1 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002333/0.5116, allocations: 0.6273 MB / 402.7 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000219/0.5119, allocations: 7.938 kB / 402.7 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002441/0.5122, allocations: 23.73 kB / 402.8 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002148/0.5124, allocations: 23.78 kB / 402.8 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006694/0.5131, allocations: 106 kB / 402.9 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003403/0.5135, allocations: 135.6 kB / 403 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002676/0.5138, allocations: 61.7 kB / 403.1 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.514, allocations: 55.72 kB / 403.1 MB, free: 5.922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.5141, allocations: 51.7 kB / 403.2 MB, free: 5.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.053e-05/0.5142, allocations: 16 kB / 403.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.446e-05/0.5143, allocations: 8 kB / 403.2 MB, free: 5.848 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.5144, allocations: 35.8 kB / 403.2 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.5145, allocations: 59.59 kB / 403.3 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003507/0.5149, allocations: 139.4 kB / 403.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.476e-06/0.5149, allocations: 0 / 403.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.5149, allocations: 0 / 403.4 MB, free: 5.617 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.5149, allocations: 4 kB / 403.4 MB, free: 5.613 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.001003/0.516, allocations: 444.6 kB / 403.9 MB, free: 5.133 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.942e-05/0.516, allocations: 12.03 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.769e-05/0.5161, allocations: 50.67 kB / 403.9 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.221e-05/0.5162, allocations: 16.75 kB / 404 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006017/0.5168, allocations: 245.8 kB / 404.2 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.811e-05/0.5169, allocations: 7.938 kB / 404.2 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.433e-05/0.5169, allocations: 12 kB / 404.2 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009748/0.5179, allocations: 292.1 kB / 404.5 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.5179, allocations: 0 / 404.5 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2e-05/0.518, allocations: 0 / 404.5 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.518, allocations: 4 kB / 404.5 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004197/0.5184, allocations: 75.88 kB / 404.6 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007929/0.5192, allocations: 439.3 kB / 405 MB, free: 3.859 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009003/0.5202, allocations: 297.9 kB / 405.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003848/0.5206, allocations: 108.4 kB / 405.4 MB, free: 3.383 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.12e-05/0.5206, allocations: 4 kB / 405.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.371e-05/0.5207, allocations: 38.5 kB / 405.4 MB, free: 3.332 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 7.324e-06/0.5207, allocations: 3.984 kB / 405.4 MB, free: 3.328 MB / 318.1 MB Notification: Performance of matching and sorting (n=18): time 0.001107/0.5218, allocations: 221.6 kB / 405.7 MB, free: 3.105 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001975/0.5221, allocations: 195.9 kB / 405.9 MB, free: 2.871 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002587/0.5223, allocations: 187 kB / 406 MB, free: 2.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.24e-05/0.5224, allocations: 29.7 kB / 406.1 MB, free: 2.645 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.287e-05/0.5225, allocations: 100.5 kB / 406.2 MB, free: 2.539 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.675e-05/0.5225, allocations: 15.89 kB / 406.2 MB, free: 2.523 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.257e-05/0.5226, allocations: 41.64 kB / 406.2 MB, free: 2.477 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.5228, allocations: 326.8 kB / 406.5 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.5229, allocations: 23.98 kB / 406.6 MB, free: 2.125 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002733/0.5232, allocations: 139.3 kB / 406.7 MB, free: 1.934 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004261/0.5237, allocations: 174.4 kB / 406.9 MB, free: 1.711 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.5237, allocations: 0 / 406.9 MB, free: 1.711 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006006/0.5243, allocations: 173.2 kB / 407 MB, free: 1.535 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.441e-05/0.5244, allocations: 8 kB / 407 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.5244, allocations: 4 kB / 407 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.161e-05/0.5244, allocations: 4 kB / 407.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002908/0.5247, allocations: 43.97 kB / 407.1 MB, free: 1.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.408e-05/0.5248, allocations: 12.41 kB / 407.1 MB, free: 1.465 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002232/0.525, allocations: 19.84 kB / 407.1 MB, free: 1.445 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.634e-05/0.5251, allocations: 12 kB / 407.1 MB, free: 1.434 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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.0002164/0.5253, allocations: 137.8 kB / 407.3 MB, free: 1.289 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000411/0.5257, allocations: 141.3 kB / 407.4 MB, free: 1.145 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.555e-05/0.5258, allocations: 25.39 kB / 407.4 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/0.5258, allocations: 4 kB / 407.4 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.5258, allocations: 3.938 kB / 407.4 MB, free: 1.105 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.5258, allocations: 4.031 kB / 407.4 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005248/0.5264, allocations: 225.4 kB / 407.7 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.5264, allocations: 0 / 407.7 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002793/0.5267, allocations: 39.92 kB / 407.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.474e-06/0.5267, allocations: 0 / 407.7 MB, free: 0.793 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.582e-05/0.5268, allocations: 7.984 kB / 407.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/0.5268, allocations: 0 / 407.7 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/0.5268, allocations: 11.88 kB / 407.7 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008023/0.5276, allocations: 363.5 kB / 408.1 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001652/0.5278, allocations: 108.8 kB / 408.2 MB, free: 276 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.069e-05/0.5279, allocations: 8 kB / 408.2 MB, free: 268 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003181/0.5282, allocations: 11.98 kB / 408.2 MB, free: 256 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.491e-05/0.5283, allocations: 11.94 kB / 408.2 MB, free: 244 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.413e-05/0.5283, allocations: 7.984 kB / 408.2 MB, free: 236 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002182/0.5286, allocations: 133.2 kB / 408.4 MB, free: 104 kB / 318.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5286, allocations: 0 / 408.4 MB, free: 104 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006871/0.5293, allocations: 20 kB / 408.4 MB, free: 84 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (hold1.compDelay.ubuf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.001612/0.5309, allocations: 0.9587 MB / 409.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006092/0.5316, allocations: 115.8 kB / 409.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 9.848e-06/0.5316, allocations: 4 kB / 409.5 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.914e-05/0.5317, allocations: 15.92 kB / 409.5 MB, free: 14.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001302/0.533, allocations: 115.1 kB / 409.6 MB, free: 14.85 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004262/0.5373, allocations: 2.07 MB / 411.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/0.5378, allocations: 0.7279 MB / 412.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001354/0.538, allocations: 17.55 kB / 412.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001401/0.5382, allocations: 39.42 kB / 412.4 MB, free: 11.77 MB / 334.1 MB Notification: Performance of SimCode: time 1.944e-06/0.5382, allocations: 4 kB / 412.4 MB, free: 11.76 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1351/0.6733, allocations: 3.56 MB / 416 MB, free: 8.371 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/12.42, allocations: 8.25 kB / 416 MB, free: 8.367 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects2/HoldWithDAeffects2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches