Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001151/0.001151, allocations: 103.7 kB / 17.63 MB, free: 5.52 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001287/0.001286, allocations: 204.6 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.493/1.493, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 59.75 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.1268, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects): time 0.004934/0.1318, allocations: 1.87 MB / 359.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001827/0.1337, allocations: 0.7478 MB / 360.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001712/0.1338, allocations: 3.938 kB / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002075/0.1341, allocations: 19.8 kB / 360.2 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002225/0.1343, allocations: 27.78 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007732/0.1351, allocations: 174.9 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003016/0.1354, allocations: 155.5 kB / 360.6 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002183/0.1357, allocations: 57.52 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002133/0.1359, allocations: 63.78 kB / 360.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.1361, allocations: 63.62 kB / 360.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.806e-05/0.1361, allocations: 12 kB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001521/0.1363, allocations: 51.97 kB / 360.8 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001239/0.1364, allocations: 43.84 kB / 360.9 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.1365, allocations: 75.52 kB / 360.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000396/0.1369, allocations: 191.4 kB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.137, allocations: 4 kB / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.137, allocations: 0 / 361.1 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.438e-06/0.137, allocations: 4 kB / 361.1 MB, free: 10.46 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0009181/0.1379, allocations: 483 kB / 361.6 MB, free: 9.938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.59e-05/0.138, allocations: 8.031 kB / 361.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.161e-05/0.138, allocations: 38.75 kB / 361.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000202/0.1382, allocations: 32.64 kB / 361.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003083/0.1386, allocations: 243.9 kB / 361.9 MB, free: 9.574 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.226e-05/0.1386, allocations: 4.562 kB / 361.9 MB, free: 9.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.511e-05/0.1386, allocations: 23.8 kB / 361.9 MB, free: 9.547 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006835/0.1393, allocations: 334.2 kB / 362.3 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.1393, allocations: 0 / 362.3 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.1394, allocations: 4 kB / 362.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1394, allocations: 0 / 362.3 MB, free: 9.199 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000238/0.1396, allocations: 79.94 kB / 362.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000506/0.1401, allocations: 349.5 kB / 362.7 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005092/0.1407, allocations: 262.5 kB / 362.9 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.1409, allocations: 105.7 kB / 363.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008497/0.1418, allocations: 0.5856 MB / 363.6 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.1418, allocations: 38.56 kB / 363.7 MB, free: 7.562 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.964e-06/0.1418, allocations: 0 / 363.7 MB, free: 7.562 MB / 302.1 MB Notification: Performance of matching and sorting (n=19): time 0.0006558/0.1425, allocations: 233.2 kB / 363.9 MB, free: 7.328 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.1426, allocations: 122.7 kB / 364 MB, free: 7.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002296/0.1428, allocations: 195.3 kB / 364.2 MB, free: 6.977 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.148e-05/0.1429, allocations: 29.7 kB / 364.2 MB, free: 6.941 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.871e-05/0.143, allocations: 104.6 kB / 364.3 MB, free: 6.836 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.862e-05/0.143, allocations: 15.89 kB / 364.4 MB, free: 6.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.153e-05/0.1431, allocations: 41.64 kB / 364.4 MB, free: 6.773 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.1433, allocations: 330.8 kB / 364.7 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.537e-05/0.1434, allocations: 39.97 kB / 364.8 MB, free: 6.402 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001875/0.1436, allocations: 165.1 kB / 364.9 MB, free: 6.18 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002843/0.1439, allocations: 208.1 kB / 365.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1439, allocations: 0 / 365.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003795/0.1443, allocations: 217 kB / 365.3 MB, free: 5.699 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.1443, allocations: 8 kB / 365.3 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.1443, allocations: 4 kB / 365.3 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.591e-05/0.1443, allocations: 4 kB / 365.4 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.1445, allocations: 51.91 kB / 365.4 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.501e-05/0.1445, allocations: 8.5 kB / 365.4 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001338/0.1447, allocations: 23.84 kB / 365.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.774e-05/0.1447, allocations: 12 kB / 365.4 MB, free: 5.59 MB / 302.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.0001692/0.1449, allocations: 149.7 kB / 365.6 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003243/0.1452, allocations: 165.2 kB / 365.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000369/0.1456, allocations: 182 kB / 365.9 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.1456, allocations: 8 kB / 365.9 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.1456, allocations: 3.984 kB / 365.9 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.1456, allocations: 0 / 365.9 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002278/0.1459, allocations: 229.4 kB / 366.2 MB, free: 4.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.1459, allocations: 3.984 kB / 366.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001391/0.146, allocations: 27.98 kB / 366.2 MB, free: 4.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.146, allocations: 4 kB / 366.2 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.1461, allocations: 7.984 kB / 366.2 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.1461, allocations: 0 / 366.2 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.222e-06/0.1461, allocations: 11.88 kB / 366.2 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004063/0.1465, allocations: 290.4 kB / 366.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.024e-05/0.1466, allocations: 112.9 kB / 366.6 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.5e-05/0.1466, allocations: 8 kB / 366.6 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.1468, allocations: 7.984 kB / 366.6 MB, free: 4.301 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.279e-05/0.1468, allocations: 8 kB / 366.6 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/0.1468, allocations: 8 kB / 366.6 MB, free: 4.285 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001212/0.147, allocations: 143.2 kB / 366.8 MB, free: 4.145 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.147, allocations: 0 / 366.8 MB, free: 4.145 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003273/0.1473, allocations: 31.98 kB / 366.8 MB, free: 4.113 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: 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.00107/0.1484, allocations: 0.9276 MB / 367.7 MB, free: 3.156 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004193/0.1488, allocations: 152.8 kB / 367.9 MB, free: 3.008 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1488, allocations: 0 / 367.9 MB, free: 3.008 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.174e-05/0.1489, allocations: 8 kB / 367.9 MB, free: 3 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006519/0.1495, allocations: 149.5 kB / 368.1 MB, free: 2.848 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.1512, allocations: 1.043 MB / 369.1 MB, free: 1.684 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.1516, allocations: 0.7323 MB / 369.8 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.493e-05/0.1517, allocations: 21.55 kB / 369.8 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.104e-05/0.1518, allocations: 43.42 kB / 369.9 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1518, allocations: 0 / 369.9 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1988/0.3505, allocations: 4.148 MB / 374 MB, free: 19.69 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.562/8.913, allocations: 8.562 kB / 374 MB, free: 19.69 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SampleWithADeffects/SampleWithADeffects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SampleWithADeffects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches