Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.001332/0.001332, allocations: 124.8 kB / 17.79 MB, free: 5.266 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.001326/0.001326, allocations: 186.9 kB / 20.73 MB, free: 2.332 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.522/1.522, allocations: 225.6 MB / 249.1 MB, free: 3.613 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.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00169/0.00169, allocations: 47.92 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1273, allocations: 52.15 MB / 417.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004754/0.1321, allocations: 2.704 MB / 420.5 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001797/0.1339, allocations: 0.9154 MB / 421.4 MB, free: 9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001758/0.1341, allocations: 11.94 kB / 421.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000226/0.1343, allocations: 63.33 kB / 421.5 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003014/0.1346, allocations: 59.52 kB / 421.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00067/0.1352, allocations: 235.5 kB / 421.7 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005335/0.1358, allocations: 378.9 kB / 422.1 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002772/0.1361, allocations: 132.9 kB / 422.2 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001946/0.1363, allocations: 139.4 kB / 422.4 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002461/0.1365, allocations: 147.2 kB / 422.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.685e-05/0.1366, allocations: 32 kB / 422.6 MB, free: 7.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.1367, allocations: 75.95 kB / 422.6 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.1368, allocations: 87.62 kB / 422.7 MB, free: 7.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.137, allocations: 163.1 kB / 422.9 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006155/0.1376, allocations: 410.2 kB / 423.3 MB, free: 7.098 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.1376, allocations: 4 kB / 423.3 MB, free: 7.094 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1376, allocations: 0 / 423.3 MB, free: 7.094 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.1376, allocations: 0 / 423.3 MB, free: 7.094 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001225/0.1388, allocations: 0.6505 MB / 423.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.1389, allocations: 12.03 kB / 423.9 MB, free: 6.383 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.831e-05/0.139, allocations: 62.72 kB / 424 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.945e-05/0.1391, allocations: 48.59 kB / 424 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006325/0.1397, allocations: 328.2 kB / 424.4 MB, free: 5.906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.159e-05/0.1397, allocations: 28.92 kB / 424.4 MB, free: 5.879 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.194e-05/0.1398, allocations: 32.12 kB / 424.4 MB, free: 5.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001473/0.1413, allocations: 0.7406 MB / 425.2 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/0.1413, allocations: 0 / 425.2 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/0.1413, allocations: 12 kB / 425.2 MB, free: 5.059 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.1413, allocations: 8 kB / 425.2 MB, free: 5.051 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006285/0.142, allocations: 227.7 kB / 425.4 MB, free: 4.828 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.143, allocations: 0.7761 MB / 426.2 MB, free: 3.977 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.1442, allocations: 0.5994 MB / 426.8 MB, free: 3.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005232/0.1447, allocations: 254.8 kB / 427 MB, free: 3.039 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008085/0.1455, allocations: 0.5934 MB / 427.6 MB, free: 2.316 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.09e-05/0.1455, allocations: 42.5 kB / 427.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.014e-06/0.1455, allocations: 0 / 427.7 MB, free: 2.266 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001327/0.1469, allocations: 0.5286 MB / 428.2 MB, free: 1.73 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001696/0.147, allocations: 211.7 kB / 428.4 MB, free: 1.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003504/0.1474, allocations: 258.8 kB / 428.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.268e-05/0.1474, allocations: 33.7 kB / 428.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.1475, allocations: 148.9 kB / 428.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.764e-05/0.1476, allocations: 55.72 kB / 428.9 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001228/0.1477, allocations: 78.25 kB / 429 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001922/0.1479, allocations: 346.8 kB / 429.3 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000236/0.1482, allocations: 89.06 kB / 429.4 MB, free: 468 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005121/0.1487, allocations: 430.9 kB / 429.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007559/0.1494, allocations: 0.5281 MB / 430.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.733e-06/0.1494, allocations: 4 kB / 430.3 MB, free: 15.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008661/0.1503, allocations: 0.4899 MB / 430.8 MB, free: 14.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.1503, allocations: 12 kB / 430.8 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.1503, allocations: 12 kB / 430.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.705e-05/0.1504, allocations: 16.03 kB / 430.9 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003549/0.1507, allocations: 115.8 kB / 431 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.609e-05/0.1507, allocations: 27.86 kB / 431 MB, free: 14.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002777/0.151, allocations: 55.77 kB / 431.1 MB, free: 14.44 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.471e-05/0.1511, allocations: 32 kB / 431.1 MB, free: 14.41 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0002382/0.1513, allocations: 189.5 kB / 431.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000736/0.152, allocations: 342.7 kB / 431.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008129/0.1528, allocations: 364.8 kB / 432 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.295e-06/0.1529, allocations: 4 kB / 432 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.19e-05/0.1529, allocations: 8 kB / 432 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.1529, allocations: 3.984 kB / 432 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004449/0.1533, allocations: 337.2 kB / 432.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.724e-06/0.1533, allocations: 4 kB / 432.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004374/0.1538, allocations: 99.88 kB / 432.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.1538, allocations: 0 / 432.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.928e-05/0.1538, allocations: 11.98 kB / 432.4 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.1538, allocations: 4 kB / 432.4 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1538, allocations: 3.938 kB / 432.4 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001416/0.1552, allocations: 0.7827 MB / 433.2 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.1553, allocations: 121 kB / 433.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.082e-05/0.1554, allocations: 15.98 kB / 433.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003027/0.1557, allocations: 23.98 kB / 433.4 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.038e-05/0.1557, allocations: 11.97 kB / 433.4 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.05e-05/0.1558, allocations: 12 kB / 433.4 MB, free: 11.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002076/0.156, allocations: 182 kB / 433.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.156, allocations: 3.938 kB / 433.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005439/0.1565, allocations: 79.92 kB / 433.7 MB, free: 11.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * 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: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * 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.001836/0.1584, allocations: 1.356 MB / 435 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007102/0.1591, allocations: 345.7 kB / 435.4 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.1591, allocations: 0 / 435.4 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.187e-05/0.1592, allocations: 28.3 kB / 435.4 MB, free: 9.984 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001082/0.1603, allocations: 294 kB / 435.7 MB, free: 9.691 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00546/0.1657, allocations: 3.829 MB / 439.5 MB, free: 5.438 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004988/0.1662, allocations: 0.8042 MB / 440.3 MB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000117/0.1663, allocations: 39.27 kB / 440.3 MB, free: 4.566 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.1665, allocations: 111.4 kB / 440.5 MB, free: 4.457 MB / 366.1 MB Notification: Performance of SimCode: time 4.5e-07/0.1665, allocations: 0 / 440.5 MB, free: 4.457 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2751/0.4416, allocations: 8.108 MB / 448.6 MB, free: 31.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.094/9.536, allocations: 9.609 kB / 448.6 MB, free: 31.09 MB / 366.1 MB " [Timeout remaining time 650] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --stepSize=0.0009802 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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: 12.188830277882516]