Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001624/0.001624, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001803/0.001803, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.576/1.576, allocations: 230.4 MB / 254 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] 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.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_trunk_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_trunk_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.00219/0.00219, allocations: 55.91 kB / 373 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1226, allocations: 53.37 MB / 426.3 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.005528/0.1281, allocations: 2.718 MB / 429 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002409/0.1305, allocations: 0.9467 MB / 430 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003971/0.1309, allocations: 15.88 kB / 430 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003293/0.1313, allocations: 63.31 kB / 430.1 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004167/0.1317, allocations: 67.45 kB / 430.1 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001005/0.1327, allocations: 246.2 kB / 430.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007134/0.1334, allocations: 378.9 kB / 430.7 MB, free: 232 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000341/0.1337, allocations: 132.8 kB / 430.9 MB, free: 96 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002846/0.134, allocations: 143.4 kB / 431 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002928/0.1343, allocations: 143.3 kB / 431.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.428e-05/0.1344, allocations: 32 kB / 431.2 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001619/0.1346, allocations: 67.95 kB / 431.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.1347, allocations: 91.62 kB / 431.3 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001903/0.1349, allocations: 159.1 kB / 431.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007042/0.1356, allocations: 426.1 kB / 431.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1356, allocations: 0 / 431.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1356, allocations: 0 / 431.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.063e-05/0.1356, allocations: 3.938 kB / 431.9 MB, free: 15.05 MB / 366.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.001421/0.1371, allocations: 0.6466 MB / 432.6 MB, free: 14.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.646e-05/0.1371, allocations: 8.031 kB / 432.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001117/0.1372, allocations: 70.72 kB / 432.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/0.1373, allocations: 36.7 kB / 432.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000553/0.1379, allocations: 336.1 kB / 433 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.619e-05/0.1379, allocations: 28.94 kB / 433 MB, free: 13.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.408e-05/0.138, allocations: 28.12 kB / 433.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.1395, allocations: 0.7365 MB / 433.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.782e-05/0.1395, allocations: 3.938 kB / 433.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.29e-05/0.1395, allocations: 15.94 kB / 433.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.1396, allocations: 4 kB / 433.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006201/0.1402, allocations: 227.7 kB / 434 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.1412, allocations: 0.7645 MB / 434.8 MB, free: 11.95 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/0.1424, allocations: 0.599 MB / 435.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004772/0.1429, allocations: 243.3 kB / 435.6 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007415/0.1436, allocations: 0.601 MB / 436.2 MB, free: 10.3 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.1436, allocations: 38.56 kB / 436.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 3.697e-06/0.1436, allocations: 0 / 436.3 MB, free: 10.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001393/0.145, allocations: 0.5205 MB / 436.8 MB, free: 9.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001804/0.1452, allocations: 211.9 kB / 437 MB, free: 9.473 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000314/0.1455, allocations: 246.8 kB / 437.3 MB, free: 9.227 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.363e-05/0.1456, allocations: 37.7 kB / 437.3 MB, free: 9.184 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.1457, allocations: 148.9 kB / 437.4 MB, free: 9.031 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.406e-05/0.1458, allocations: 55.7 kB / 437.5 MB, free: 8.977 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.1459, allocations: 86.19 kB / 437.6 MB, free: 8.887 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.1461, allocations: 346.8 kB / 437.9 MB, free: 8.539 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002031/0.1463, allocations: 81.19 kB / 438 MB, free: 8.457 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005379/0.1468, allocations: 442.8 kB / 438.4 MB, free: 7.855 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007263/0.1476, allocations: 0.5242 MB / 438.9 MB, free: 7.168 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.184e-05/0.1476, allocations: 4 kB / 439 MB, free: 7.164 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0009164/0.1485, allocations: 0.4968 MB / 439.5 MB, free: 6.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.1485, allocations: 9 kB / 439.5 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.229e-05/0.1485, allocations: 12 kB / 439.5 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.483e-05/0.1486, allocations: 23.98 kB / 439.5 MB, free: 6.617 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003679/0.1489, allocations: 119.8 kB / 439.6 MB, free: 6.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.884e-05/0.149, allocations: 23.92 kB / 439.6 MB, free: 6.477 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002828/0.1492, allocations: 51.72 kB / 439.7 MB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.826e-05/0.1493, allocations: 28 kB / 439.7 MB, free: 6.398 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.0002645/0.1495, allocations: 193.9 kB / 439.9 MB, free: 6.199 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007305/0.1503, allocations: 346.1 kB / 440.2 MB, free: 5.855 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007921/0.1511, allocations: 356.7 kB / 440.6 MB, free: 5.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.1511, allocations: 8 kB / 440.6 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1511, allocations: 0 / 440.6 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.1511, allocations: 0 / 440.6 MB, free: 5.492 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004698/0.1516, allocations: 341.2 kB / 440.9 MB, free: 5.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.1516, allocations: 8 kB / 440.9 MB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004/0.152, allocations: 95.88 kB / 441 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.124e-05/0.152, allocations: 4 kB / 441 MB, free: 5.004 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.503e-05/0.152, allocations: 12 kB / 441 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.152, allocations: 0 / 441 MB, free: 4.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.152, allocations: 11.92 kB / 441.1 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001462/0.1535, allocations: 0.7747 MB / 441.8 MB, free: 4.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001149/0.1536, allocations: 124.8 kB / 442 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.733e-05/0.1537, allocations: 16.06 kB / 442 MB, free: 4.023 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.1539, allocations: 23.97 kB / 442 MB, free: 4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.073e-05/0.154, allocations: 4 kB / 442 MB, free: 3.996 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.822e-05/0.154, allocations: 19.98 kB / 442 MB, free: 3.977 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002048/0.1542, allocations: 182 kB / 442.2 MB, free: 3.801 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1542, allocations: 0 / 442.2 MB, free: 3.801 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005541/0.1548, allocations: 79.83 kB / 442.3 MB, free: 3.723 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.001842/0.1566, allocations: 1.348 MB / 443.6 MB, free: 2.344 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008526/0.1575, allocations: 358.5 kB / 444 MB, free: 2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.1575, allocations: 0 / 444 MB, free: 2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001079/0.1576, allocations: 23.98 kB / 444 MB, free: 1.977 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001113/0.1587, allocations: 306.3 kB / 444.3 MB, free: 1.672 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2149/0.3736, allocations: 3.815 MB / 448.1 MB, free: 22.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002384/0.3738, allocations: 0.8075 MB / 448.9 MB, free: 21.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001442/0.374, allocations: 41.06 kB / 449 MB, free: 21.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001658/0.3742, allocations: 114.2 kB / 449.1 MB, free: 21.81 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.3742, allocations: 0 / 449.1 MB, free: 21.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04038/0.4145, allocations: 8.106 MB / 457.2 MB, free: 21.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.137/8.552, allocations: 10.66 kB / 457.2 MB, free: 21.16 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0009802 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w [Calling sys.exit(0), Time elapsed: 11.305820278939791]