Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.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.HoldWithDAeffects2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001638/0.001638, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002221/0.002221, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 67.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2923, allocations: 50.54 MB / 408.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2): time 0.00409/0.2964, allocations: 1.861 MB / 410.6 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001844/0.2983, allocations: 0.6973 MB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002589/0.2986, allocations: 4 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002036/0.2989, allocations: 23.73 kB / 411.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.2991, allocations: 23.8 kB / 411.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005419/0.2996, allocations: 107.7 kB / 411.5 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002708/0.2999, allocations: 147.6 kB / 411.6 MB, free: 14.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001924/0.3001, allocations: 61.69 kB / 411.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001866/0.3003, allocations: 63.72 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001166/0.3005, allocations: 55.64 kB / 411.8 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.769e-05/0.3005, allocations: 8 kB / 411.8 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.255e-05/0.3006, allocations: 20 kB / 411.8 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.498e-05/0.3007, allocations: 23.92 kB / 411.9 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.756e-05/0.3007, allocations: 59.55 kB / 411.9 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002345/0.301, allocations: 157.1 kB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.301, allocations: 3.938 kB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.301, allocations: 0 / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.301, allocations: 0 / 412.1 MB, free: 14.25 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.0007255/0.3017, allocations: 454.9 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.561e-05/0.3018, allocations: 8.031 kB / 412.5 MB, free: 13.75 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.848e-05/0.3019, allocations: 46.73 kB / 412.6 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002133/0.3021, allocations: 28.66 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005474/0.3026, allocations: 252.9 kB / 412.8 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.586e-05/0.3027, allocations: 15.92 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.795e-05/0.3027, allocations: 4 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007982/0.3035, allocations: 293.5 kB / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.3035, allocations: 0 / 413.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.821e-05/0.3035, allocations: 4 kB / 413.1 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.3036, allocations: 4 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002221/0.3038, allocations: 67.89 kB / 413.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006651/0.3045, allocations: 435.3 kB / 413.6 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005056/0.305, allocations: 290.1 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001925/0.3052, allocations: 116.3 kB / 414 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.075e-05/0.3052, allocations: 11.97 kB / 414.1 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.3053, allocations: 34.56 kB / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=18): time 2.031e-05/0.3053, allocations: 0 / 414.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=18): time 0.000583/0.3059, allocations: 229.2 kB / 414.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001365/0.306, allocations: 187.9 kB / 414.5 MB, free: 11.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001945/0.3062, allocations: 186.2 kB / 414.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.3063, allocations: 26.08 kB / 414.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.072e-05/0.3063, allocations: 108.5 kB / 414.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.849e-05/0.3064, allocations: 19.8 kB / 414.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.507e-05/0.3064, allocations: 33.72 kB / 414.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.3066, allocations: 326.8 kB / 415.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.994e-05/0.3067, allocations: 27.98 kB / 415.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001382/0.3068, allocations: 143.3 kB / 415.3 MB, free: 10.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002384/0.3071, allocations: 166.4 kB / 415.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.3071, allocations: 3.938 kB / 415.5 MB, free: 10.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003004/0.3074, allocations: 181.1 kB / 415.7 MB, free: 10.15 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.3074, allocations: 7.5 kB / 415.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.506e-06/0.3074, allocations: 4 kB / 415.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.372e-05/0.3075, allocations: 12 kB / 415.7 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.3076, allocations: 39.92 kB / 415.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.69e-05/0.3076, allocations: 15.86 kB / 415.8 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.3078, allocations: 15.84 kB / 415.8 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.3078, allocations: 8 kB / 415.8 MB, free: 10.05 MB / 334.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.0001194/0.3079, allocations: 141.7 kB / 415.9 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002975/0.3082, allocations: 141.8 kB / 416.1 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.415e-05/0.3083, allocations: 25.39 kB / 416.1 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.3083, allocations: 4 kB / 416.1 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.3083, allocations: 4.172 kB / 416.1 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3083, allocations: 4 kB / 416.1 MB, free: 9.715 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002803/0.3086, allocations: 217.4 kB / 416.3 MB, free: 9.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.494e-06/0.3086, allocations: 7.969 kB / 416.3 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.3088, allocations: 35.98 kB / 416.4 MB, free: 9.41 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.187e-06/0.3088, allocations: 4 kB / 416.4 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.438e-05/0.3088, allocations: 3.938 kB / 416.4 MB, free: 9.402 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.708e-05/0.3088, allocations: 16.02 kB / 416.4 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/0.3088, allocations: 7.875 kB / 416.4 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004231/0.3093, allocations: 353.2 kB / 416.7 MB, free: 9.008 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.3094, allocations: 116.7 kB / 416.8 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.683e-05/0.3094, allocations: 8 kB / 416.9 MB, free: 8.867 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.3096, allocations: 11.98 kB / 416.9 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.656e-05/0.3096, allocations: 3.938 kB / 416.9 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.495e-05/0.3096, allocations: 12 kB / 416.9 MB, free: 8.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001098/0.3097, allocations: 132.4 kB / 417 MB, free: 8.711 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3097, allocations: 3.938 kB / 417 MB, free: 8.707 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003724/0.3101, allocations: 24 kB / 417 MB, free: 8.684 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: 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.0009019/0.311, allocations: 0.9588 MB / 418 MB, free: 7.691 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003096/0.3114, allocations: 112.7 kB / 418.1 MB, free: 7.582 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3114, allocations: 0 / 418.1 MB, free: 7.582 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.691e-05/0.3114, allocations: 20.17 kB / 418.1 MB, free: 7.562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006295/0.3121, allocations: 107.2 kB / 418.2 MB, free: 7.461 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.3144, allocations: 2.082 MB / 420.3 MB, free: 5.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.3147, allocations: 0.728 MB / 421 MB, free: 4.426 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.416e-05/0.3148, allocations: 13.55 kB / 421.1 MB, free: 4.414 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.835e-05/0.3149, allocations: 39.42 kB / 421.1 MB, free: 4.375 MB / 334.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3149, allocations: 3.938 kB / 421.1 MB, free: 4.371 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02252/0.3374, allocations: 3.572 MB / 424.7 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.341/8.678, allocations: 8 kB / 424.7 MB, free: 0.9453 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_HoldWithDAeffects2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches