Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.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.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001304/0.001304, allocations: 116.1 kB / 17.33 MB, free: 6.012 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: 205.8 kB / 18.27 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 227.4 MB / 246.4 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 58.81 kB / 306.6 MB, free: 0.8398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1279, allocations: 50.53 MB / 357.1 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample): time 0.004227/0.1322, allocations: 1.624 MB / 358.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.1336, allocations: 0.5377 MB / 359.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001361/0.1337, allocations: 7.938 kB / 359.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.071e-05/0.1338, allocations: 0 / 359.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001496/0.134, allocations: 7.938 kB / 359.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004277/0.1344, allocations: 63.8 kB / 359.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001264/0.1346, allocations: 51.78 kB / 359.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.1347, allocations: 16.17 kB / 359.4 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001531/0.1349, allocations: 35.91 kB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.734e-05/0.135, allocations: 23.86 kB / 359.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.409e-05/0.135, allocations: 0 / 359.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.633e-05/0.135, allocations: 8 kB / 359.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.162e-05/0.1351, allocations: 19.92 kB / 359.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.301e-05/0.1352, allocations: 23.81 kB / 359.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000151/0.1353, allocations: 59.73 kB / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1353, allocations: 0 / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.1353, allocations: 4 kB / 359.6 MB, free: 11.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.1354, allocations: 3.938 kB / 359.6 MB, free: 11.8 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005637/0.1359, allocations: 379.3 kB / 359.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.83e-05/0.136, allocations: 19.95 kB / 360 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.798e-05/0.136, allocations: 34.69 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001831/0.1362, allocations: 24.83 kB / 360 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002288/0.1365, allocations: 195 kB / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.1365, allocations: 8.125 kB / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.263e-05/0.1365, allocations: 4 kB / 360.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.1368, allocations: 101 kB / 360.3 MB, free: 10.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.1368, allocations: 4 kB / 360.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.1369, allocations: 0 / 360.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.1369, allocations: 0 / 360.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.178e-05/0.1369, allocations: 23.92 kB / 360.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003965/0.1374, allocations: 265.7 kB / 360.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.991e-05/0.1375, allocations: 45.14 kB / 360.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.229e-05/0.1375, allocations: 21.78 kB / 360.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.626e-05/0.1375, allocations: 3.984 kB / 360.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.569e-05/0.1376, allocations: 30.56 kB / 360.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of pre-optimization done (n=2): time 1.573e-06/0.1376, allocations: 0 / 360.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=2): time 0.000309/0.1379, allocations: 73.53 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.099e-05/0.138, allocations: 81.09 kB / 360.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/0.1382, allocations: 145.7 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.73e-05/0.1382, allocations: 25.7 kB / 361 MB, free: 10.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.1383, allocations: 96.12 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.1383, allocations: 7.844 kB / 361.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.952e-05/0.1384, allocations: 13.97 kB / 361.1 MB, free: 9.988 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.1386, allocations: 322.8 kB / 361.5 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.397e-05/0.1386, allocations: 4 kB / 361.5 MB, free: 9.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.335e-05/0.1387, allocations: 25.7 kB / 361.5 MB, free: 9.629 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.692e-05/0.1387, allocations: 29.7 kB / 361.5 MB, free: 9.594 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1388, allocations: 4.062 kB / 361.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001489/0.1389, allocations: 57.53 kB / 361.6 MB, free: 9.527 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.1389, allocations: 7.938 kB / 361.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.139, allocations: 0 / 361.6 MB, free: 9.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.139, allocations: 4 kB / 361.6 MB, free: 9.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.473e-05/0.1391, allocations: 4 kB / 361.6 MB, free: 9.512 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.1391, allocations: 7.922 kB / 361.6 MB, free: 9.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.174e-05/0.1391, allocations: 4 kB / 361.6 MB, free: 9.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.1392, allocations: 4.062 kB / 361.6 MB, free: 9.496 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0001209/0.1393, allocations: 117.8 kB / 361.7 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.29e-05/0.1394, allocations: 49.53 kB / 361.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.869e-05/0.1394, allocations: 7.875 kB / 361.8 MB, free: 9.305 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.1394, allocations: 0 / 361.8 MB, free: 9.305 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.1394, allocations: 3.938 kB / 361.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1394, allocations: 0 / 361.8 MB, free: 9.301 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001849/0.1396, allocations: 173.6 kB / 361.9 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.1396, allocations: 0 / 361.9 MB, free: 9.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.618e-05/0.1397, allocations: 12.02 kB / 362 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1397, allocations: 0 / 362 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.1397, allocations: 0 / 362 MB, free: 9.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.1397, allocations: 7.984 kB / 362 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.1397, allocations: 3.938 kB / 362 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001788/0.1399, allocations: 160.2 kB / 362.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.696e-05/0.14, allocations: 101 kB / 362.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.686e-05/0.14, allocations: 0 / 362.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.665e-05/0.1401, allocations: 3.984 kB / 362.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.599e-05/0.1402, allocations: 7.938 kB / 362.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.1402, allocations: 0 / 362.2 MB, free: 8.754 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.084e-05/0.1403, allocations: 114.8 kB / 362.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1403, allocations: 0 / 362.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002256/0.1405, allocations: 4 kB / 362.4 MB, free: 8.641 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (2): * Single equations (assignments): 2 * 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.0004789/0.141, allocations: 0.6937 MB / 363 MB, free: 7.918 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001386/0.1411, allocations: 19.98 kB / 363.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.1411, allocations: 160 / 363.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.058e-05/0.1412, allocations: 15.98 kB / 363.1 MB, free: 7.883 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004291/0.1416, allocations: 19.97 kB / 363.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.1431, allocations: 1.349 MB / 364.4 MB, free: 6.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.1434, allocations: 0.6885 MB / 365.1 MB, free: 5.715 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.063e-05/0.1434, allocations: 4 kB / 365.1 MB, free: 5.711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.221e-05/0.1435, allocations: 19.42 kB / 365.2 MB, free: 5.691 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1435, allocations: 0 / 365.2 MB, free: 5.691 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01385/0.1573, allocations: 1.505 MB / 366.7 MB, free: 4.328 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003268/0.1577, allocations: 216.3 kB / 366.9 MB, free: 4.07 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.044/2.202, allocations: 3.938 kB / 366.9 MB, free: 4.066 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_ClockSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/ClockSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.ClockSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches