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.001232/0.001232, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001315/0.001315, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001397, allocations: 59.75 kB / 307.1 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.1304, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.HoldWithDAeffects1): time 0.004454/0.1349, allocations: 1.874 MB / 359.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001669/0.1366, allocations: 0.7013 MB / 360.2 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000238/0.1369, allocations: 4 kB / 360.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001957/0.1371, allocations: 19.73 kB / 360.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.1373, allocations: 27.78 kB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005723/0.1379, allocations: 107.7 kB / 360.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000274/0.1382, allocations: 139.6 kB / 360.4 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002119/0.1384, allocations: 61.69 kB / 360.5 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.1386, allocations: 67.72 kB / 360.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001286/0.1387, allocations: 55.64 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.362e-05/0.1388, allocations: 12 kB / 360.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.553e-05/0.1389, allocations: 16 kB / 360.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.594e-05/0.139, allocations: 27.92 kB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.424e-05/0.1391, allocations: 67.47 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.1394, allocations: 143.8 kB / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.1394, allocations: 0 / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1394, allocations: 0 / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.1394, allocations: 0 / 360.9 MB, free: 10.7 MB / 302.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.0008799/0.1403, allocations: 462.8 kB / 361.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.455e-05/0.1404, allocations: 8.031 kB / 361.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.796e-05/0.1404, allocations: 38.75 kB / 361.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002468/0.1407, allocations: 28.73 kB / 361.4 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.1411, allocations: 240 kB / 361.6 MB, free: 9.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.099e-05/0.1411, allocations: 15.88 kB / 361.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.002e-05/0.1411, allocations: 4 kB / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006579/0.1418, allocations: 279.2 kB / 361.9 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.1418, allocations: 7.938 kB / 361.9 MB, free: 9.516 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.1419, allocations: 4 kB / 362 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.1419, allocations: 4 kB / 362 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002167/0.1421, allocations: 75.81 kB / 362 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005478/0.1427, allocations: 423.5 kB / 362.4 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004789/0.1431, allocations: 294 kB / 362.7 MB, free: 8.605 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002003/0.1434, allocations: 112.3 kB / 362.8 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.762e-05/0.1434, allocations: 7.938 kB / 362.8 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.1434, allocations: 42.5 kB / 362.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.573e-06/0.1434, allocations: 0 / 362.9 MB, free: 8.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006094/0.1441, allocations: 217.5 kB / 363.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001284/0.1442, allocations: 199.9 kB / 363.3 MB, free: 7.965 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.1444, allocations: 178.3 kB / 363.5 MB, free: 7.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.1444, allocations: 33.7 kB / 363.5 MB, free: 7.738 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.904e-05/0.1445, allocations: 100.1 kB / 363.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.49e-05/0.1445, allocations: 12.27 kB / 363.6 MB, free: 7.625 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.888e-05/0.1446, allocations: 33.72 kB / 363.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.1448, allocations: 330.8 kB / 364 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.961e-05/0.1448, allocations: 19.98 kB / 364 MB, free: 7.234 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.145, allocations: 137.2 kB / 364.1 MB, free: 7.051 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002253/0.1453, allocations: 165.5 kB / 364.3 MB, free: 6.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.1453, allocations: 0 / 364.3 MB, free: 6.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002992/0.1456, allocations: 157.6 kB / 364.4 MB, free: 6.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.1456, allocations: 7.938 kB / 364.4 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.44e-05/0.1456, allocations: 7.984 kB / 364.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.1457, allocations: 4 kB / 364.5 MB, free: 6.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.1458, allocations: 39.92 kB / 364.5 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.1458, allocations: 7.938 kB / 364.5 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001031/0.1459, allocations: 15.84 kB / 364.5 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.697e-05/0.1459, allocations: 12 kB / 364.5 MB, free: 6.586 MB / 302.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.0001524/0.1461, allocations: 141.9 kB / 364.7 MB, free: 6.438 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002887/0.1464, allocations: 141.3 kB / 364.8 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.077e-05/0.1465, allocations: 25.39 kB / 364.8 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.1465, allocations: 4 kB / 364.8 MB, free: 6.266 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.089e-05/0.1465, allocations: 8 kB / 364.8 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.219e-06/0.1465, allocations: 0 / 364.8 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003084/0.1468, allocations: 217.5 kB / 365.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1468, allocations: 0 / 365.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001352/0.147, allocations: 43.95 kB / 365.1 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.079e-06/0.147, allocations: 3.938 kB / 365.1 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.147, allocations: 4 kB / 365.1 MB, free: 5.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.937e-06/0.147, allocations: 3.984 kB / 365.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.147, allocations: 4 kB / 365.1 MB, free: 5.938 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004314/0.1475, allocations: 357 kB / 365.5 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.1476, allocations: 120.8 kB / 365.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.1476, allocations: 0 / 365.6 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.1478, allocations: 15.98 kB / 365.6 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.369e-05/0.1478, allocations: 4 kB / 365.6 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.1478, allocations: 4 kB / 365.6 MB, free: 5.402 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000142/0.148, allocations: 136.4 kB / 365.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.148, allocations: 0 / 365.7 MB, free: 5.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000332/0.1483, allocations: 24 kB / 365.8 MB, free: 5.246 MB / 302.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.0007317/0.1491, allocations: 0.8999 MB / 366.7 MB, free: 4.312 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003077/0.1494, allocations: 120.7 kB / 366.8 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.1494, allocations: 0 / 366.8 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.76e-05/0.1494, allocations: 19.92 kB / 366.8 MB, free: 4.176 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007262/0.1502, allocations: 95.94 kB / 366.9 MB, free: 4.082 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002632/0.1528, allocations: 2.066 MB / 369 MB, free: 1.812 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.1532, allocations: 0.7318 MB / 369.7 MB, free: 1.055 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.251e-05/0.1533, allocations: 17.91 kB / 369.7 MB, free: 1.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.201e-05/0.1534, allocations: 43.42 kB / 369.8 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1534, allocations: 0 / 369.8 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2469/0.4003, allocations: 3.34 MB / 373.1 MB, free: 19.76 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.277/8.678, allocations: 14.78 kB / 373.1 MB, free: 19.75 MB / 302.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