Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 119.8 kB / 17.74 MB, free: 5.332 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001694/0.001694, allocations: 185.3 kB / 20.68 MB, free: 2.398 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.593/1.593, allocations: 222.9 MB / 246.4 MB, free: 4.176 MB / 190.1 MB " [Timeout remaining time 178] 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.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001647/0.001647, allocations: 51.92 kB / 357.5 MB, free: 8.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1151, allocations: 49.44 MB / 406.9 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.003621/0.1187, allocations: 1.855 MB / 408.8 MB, free: 5.438 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001309/0.1201, allocations: 0.6816 MB / 409.5 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.1202, allocations: 7.938 kB / 409.5 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.1203, allocations: 19.8 kB / 409.5 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001495/0.1205, allocations: 27.78 kB / 409.5 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005407/0.1211, allocations: 143.7 kB / 409.7 MB, free: 4.555 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002264/0.1213, allocations: 159.5 kB / 409.8 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.1215, allocations: 57.52 kB / 409.9 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.1216, allocations: 55.72 kB / 409.9 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.1217, allocations: 67.67 kB / 410 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.268e-05/0.1218, allocations: 16 kB / 410 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001074/0.1219, allocations: 47.97 kB / 410.1 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.122, allocations: 31.91 kB / 410.1 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.328e-05/0.1221, allocations: 75.48 kB / 410.2 MB, free: 4.055 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000296/0.1224, allocations: 203.4 kB / 410.4 MB, free: 3.855 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1224, allocations: 0 / 410.4 MB, free: 3.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1224, allocations: 0 / 410.4 MB, free: 3.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.1224, allocations: 0 / 410.4 MB, free: 3.855 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0008507/0.1233, allocations: 486.7 kB / 410.8 MB, free: 3.332 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.1233, allocations: 12.03 kB / 410.9 MB, free: 3.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.071e-05/0.1234, allocations: 46.67 kB / 410.9 MB, free: 3.266 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.907e-05/0.1235, allocations: 16.84 kB / 410.9 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003828/0.1238, allocations: 252 kB / 411.2 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.508e-05/0.1239, allocations: 8.5 kB / 411.2 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.274e-05/0.1239, allocations: 19.94 kB / 411.2 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007342/0.1246, allocations: 319.2 kB / 411.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.1247, allocations: 0 / 411.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.861e-05/0.1247, allocations: 0 / 411.5 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1247, allocations: 7.938 kB / 411.5 MB, free: 2.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002514/0.125, allocations: 79.94 kB / 411.6 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004621/0.1254, allocations: 349.5 kB / 411.9 MB, free: 2.125 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005158/0.126, allocations: 266.1 kB / 412.2 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002092/0.1262, allocations: 105.6 kB / 412.3 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008399/0.127, allocations: 0.5859 MB / 412.9 MB, free: 1.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/0.1271, allocations: 34.5 kB / 412.9 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.693e-06/0.1271, allocations: 4 kB / 412.9 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006376/0.1277, allocations: 243 kB / 413.2 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001206/0.1279, allocations: 114.8 kB / 413.3 MB, free: 0.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002118/0.1281, allocations: 195.2 kB / 413.5 MB, free: 392 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.1281, allocations: 25.7 kB / 413.5 MB, free: 360 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.917e-05/0.1282, allocations: 108.6 kB / 413.6 MB, free: 244 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.069e-05/0.1282, allocations: 24.02 kB / 413.6 MB, free: 220 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.329e-05/0.1283, allocations: 41.64 kB / 413.6 MB, free: 172 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002143/0.1285, allocations: 326.8 kB / 414 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.413e-05/0.1286, allocations: 35.97 kB / 414 MB, free: 15.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.1288, allocations: 167.4 kB / 414.2 MB, free: 15.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002798/0.1291, allocations: 208.1 kB / 414.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.1291, allocations: 0 / 414.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003864/0.1295, allocations: 217.6 kB / 414.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.1296, allocations: 9.875 kB / 414.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.1296, allocations: 4 kB / 414.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.1296, allocations: 4 kB / 414.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001485/0.1297, allocations: 47.92 kB / 414.6 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.374e-05/0.1298, allocations: 11.92 kB / 414.7 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.1299, allocations: 19.89 kB / 414.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.507e-05/0.1299, allocations: 8 kB / 414.7 MB, free: 15 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 ($CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[1],sample1.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0001676/0.1301, allocations: 164.2 kB / 414.8 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003302/0.1304, allocations: 161.4 kB / 415 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003873/0.1308, allocations: 183.3 kB / 415.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.1308, allocations: 4 kB / 415.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1309, allocations: 0 / 415.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.1309, allocations: 3.984 kB / 415.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002646/0.1311, allocations: 229.4 kB / 415.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.431e-06/0.1311, allocations: 4 kB / 415.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.1313, allocations: 31.97 kB / 415.4 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.1313, allocations: 4 kB / 415.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.1313, allocations: 4 kB / 415.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1313, allocations: 3.938 kB / 415.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1313, allocations: 0 / 415.5 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004594/0.1318, allocations: 294.7 kB / 415.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001127/0.1319, allocations: 117 kB / 415.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.208e-05/0.132, allocations: 4 kB / 415.9 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.1321, allocations: 11.98 kB / 415.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.135e-05/0.1321, allocations: 0 / 415.9 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.1322, allocations: 4 kB / 415.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001414/0.1323, allocations: 147.4 kB / 416 MB, free: 13.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1323, allocations: 0 / 416 MB, free: 13.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003117/0.1326, allocations: 39.94 kB / 416.1 MB, free: 13.51 MB / 350.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: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001141/0.1338, allocations: 0.9262 MB / 417 MB, free: 12.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003842/0.1342, allocations: 139.8 kB / 417.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.1342, allocations: 1.188 kB / 417.1 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.467e-05/0.1342, allocations: 11.98 kB / 417.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006346/0.1349, allocations: 165.6 kB / 417.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002614/0.1375, allocations: 2.152 MB / 419.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003721/0.1379, allocations: 0.7357 MB / 420.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.054e-05/0.138, allocations: 21.55 kB / 420.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.119e-05/0.1381, allocations: 39.42 kB / 420.3 MB, free: 9.074 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1381, allocations: 0 / 420.3 MB, free: 9.074 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02952/0.1676, allocations: 4.253 MB / 424.5 MB, free: 4.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.47/8.638, allocations: 10.97 kB / 424.5 MB, free: 4.961 MB / 350.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.59981273394078]