Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00142/0.00142, allocations: 118.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00166/0.00166, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 227.4 MB / 246.9 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3773, allocations: 50.53 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.003946/0.3813, allocations: 1.858 MB / 410.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001733/0.383, allocations: 0.7012 MB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002331/0.3833, allocations: 4 kB / 411.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000199/0.3836, allocations: 19.73 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001639/0.3837, allocations: 19.81 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005261/0.3843, allocations: 115.6 kB / 411.5 MB, free: 14.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002551/0.3845, allocations: 143.6 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.3847, allocations: 65.69 kB / 411.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.3849, allocations: 63.72 kB / 411.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.3851, allocations: 55.64 kB / 411.8 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.889e-05/0.3851, allocations: 12 kB / 411.8 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.631e-05/0.3852, allocations: 15.98 kB / 411.8 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.456e-05/0.3853, allocations: 27.92 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.458e-05/0.3853, allocations: 63.55 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002814/0.3856, allocations: 149.1 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3856, allocations: 0 / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3856, allocations: 4 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.3857, allocations: 4 kB / 412.1 MB, free: 14.2 MB / 334.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.0007882/0.3865, allocations: 446.9 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/0.3865, allocations: 12.03 kB / 412.5 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.25e-05/0.3866, allocations: 38.75 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002056/0.3868, allocations: 32.64 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004328/0.3872, allocations: 252.9 kB / 412.8 MB, free: 13.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.138e-05/0.3873, allocations: 7.938 kB / 412.8 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.811e-05/0.3873, allocations: 12 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006195/0.3879, allocations: 276.2 kB / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.3879, allocations: 0 / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.388, allocations: 4 kB / 413.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.388, allocations: 4 kB / 413.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.3882, allocations: 83.81 kB / 413.2 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005388/0.3887, allocations: 419.4 kB / 413.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004556/0.3892, allocations: 298.1 kB / 413.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.3894, allocations: 108.4 kB / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.3894, allocations: 7.922 kB / 414 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.3895, allocations: 46.44 kB / 414.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.503e-06/0.3895, allocations: 4 kB / 414.1 MB, free: 11.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.000573/0.3901, allocations: 213.3 kB / 414.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.3902, allocations: 195.8 kB / 414.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.3904, allocations: 182.7 kB / 414.7 MB, free: 11.28 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.3904, allocations: 33.7 kB / 414.7 MB, free: 11.24 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.039e-05/0.3905, allocations: 104 kB / 414.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.006e-05/0.3905, allocations: 11.98 kB / 414.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.589e-05/0.3906, allocations: 37.61 kB / 414.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.3908, allocations: 326.8 kB / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.538e-05/0.3909, allocations: 23.98 kB / 415.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.391, allocations: 130.5 kB / 415.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002261/0.3913, allocations: 161.6 kB / 415.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.3913, allocations: 4 kB / 415.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002797/0.3916, allocations: 157.2 kB / 415.6 MB, free: 10.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.3916, allocations: 11.94 kB / 415.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.3916, allocations: 8.438 kB / 415.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.3916, allocations: 8 kB / 415.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001314/0.3918, allocations: 35.97 kB / 415.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/0.3918, allocations: 19.86 kB / 415.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.3919, allocations: 11.84 kB / 415.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.439e-05/0.3919, allocations: 8 kB / 415.7 MB, free: 10.07 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001495/0.3921, allocations: 141.7 kB / 415.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002783/0.3924, allocations: 141.3 kB / 416 MB, free: 9.781 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.473e-05/0.3925, allocations: 29.89 kB / 416 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.3925, allocations: 4 kB / 416 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.3925, allocations: 0 / 416 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3925, allocations: 0 / 416 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003162/0.3928, allocations: 213.5 kB / 416.2 MB, free: 9.484 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.3928, allocations: 3.938 kB / 416.2 MB, free: 9.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001342/0.393, allocations: 39.91 kB / 416.3 MB, free: 9.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.393, allocations: 7.938 kB / 416.3 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.393, allocations: 4 kB / 416.3 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.23e-06/0.393, allocations: 4 kB / 416.3 MB, free: 9.426 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.393, allocations: 4 kB / 416.3 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004557/0.3935, allocations: 360.1 kB / 416.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00014/0.3936, allocations: 116.8 kB / 416.8 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.686e-05/0.3937, allocations: 8 kB / 416.8 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001467/0.3938, allocations: 7.984 kB / 416.8 MB, free: 8.898 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.675e-05/0.3939, allocations: 8 kB / 416.8 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.3939, allocations: 4 kB / 416.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001652/0.3941, allocations: 136.4 kB / 416.9 MB, free: 8.754 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3941, allocations: 0 / 416.9 MB, free: 8.754 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003542/0.3944, allocations: 20 kB / 416.9 MB, free: 8.734 MB / 334.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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0008323/0.3953, allocations: 0.8936 MB / 417.8 MB, free: 7.805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003252/0.3956, allocations: 111.8 kB / 418 MB, free: 7.695 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.3956, allocations: 0 / 418 MB, free: 7.695 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.625e-05/0.3957, allocations: 12.94 kB / 418 MB, free: 7.684 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000779/0.3965, allocations: 123.3 kB / 418.1 MB, free: 7.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003167/0.3997, allocations: 2.066 MB / 420.2 MB, free: 5.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003955/0.4001, allocations: 0.728 MB / 420.9 MB, free: 4.547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.23e-05/0.4002, allocations: 21.84 kB / 420.9 MB, free: 4.527 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.931e-05/0.4003, allocations: 39.42 kB / 420.9 MB, free: 4.492 MB / 334.1 MB Notification: Performance of SimCode: time 1.914e-06/0.4003, allocations: 0 / 420.9 MB, free: 4.492 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02624/0.4265, allocations: 3.473 MB / 424.4 MB, free: 1.176 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.352/8.779, allocations: 6.438 kB / 424.4 MB, free: 1.172 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/HoldWithDAeffects1/HoldWithDAeffects1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches