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.001293/0.001293, allocations: 116.8 kB / 17.74 MB, free: 5.352 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.00128/0.001281, allocations: 182.9 kB / 20.68 MB, free: 2.422 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.501/1.501, allocations: 222.9 MB / 246.4 MB, free: 4.344 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.00156/0.00156, allocations: 55.91 kB / 357.5 MB, free: 9.176 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.1341, allocations: 49.43 MB / 406.9 MB, free: 7.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004751/0.1389, allocations: 2.68 MB / 409.6 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001957/0.1409, allocations: 0.9153 MB / 410.5 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002276/0.1411, allocations: 11.94 kB / 410.5 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.1414, allocations: 59.39 kB / 410.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002588/0.1417, allocations: 55.45 kB / 410.6 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00077/0.1425, allocations: 243.2 kB / 410.9 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004652/0.143, allocations: 378.9 kB / 411.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003568/0.1433, allocations: 184.8 kB / 411.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001989/0.1435, allocations: 139.4 kB / 411.6 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.1437, allocations: 147.2 kB / 411.7 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.477e-05/0.1438, allocations: 32 kB / 411.7 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001462/0.144, allocations: 75.95 kB / 411.8 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001334/0.1441, allocations: 79.75 kB / 411.9 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001812/0.1443, allocations: 167 kB / 412 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005883/0.1449, allocations: 418.2 kB / 412.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1449, allocations: 0 / 412.5 MB, free: 2.133 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1449, allocations: 3.938 kB / 412.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.1449, allocations: 0 / 412.5 MB, free: 2.129 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001247/0.1462, allocations: 0.6466 MB / 413.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.1462, allocations: 8.031 kB / 413.1 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001069/0.1464, allocations: 74.66 kB / 413.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.875e-05/0.1464, allocations: 40.66 kB / 413.2 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005431/0.147, allocations: 332.1 kB / 413.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.147, allocations: 20.94 kB / 413.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.85e-05/0.1471, allocations: 40.06 kB / 413.6 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.1485, allocations: 0.7328 MB / 414.3 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.1486, allocations: 0 / 414.3 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.182e-05/0.1486, allocations: 16 kB / 414.4 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.1486, allocations: 4 kB / 414.4 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000605/0.1492, allocations: 219.8 kB / 414.6 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001016/0.1503, allocations: 0.7722 MB / 415.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.1515, allocations: 0.6308 MB / 416 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005057/0.152, allocations: 283.4 kB / 416.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007614/0.1527, allocations: 0.5895 MB / 416.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.906e-05/0.1528, allocations: 42.5 kB / 416.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.394e-06/0.1528, allocations: 0 / 416.9 MB, free: 13.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.001304/0.1541, allocations: 0.5167 MB / 417.4 MB, free: 12.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001662/0.1543, allocations: 219.6 kB / 417.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.1546, allocations: 246.6 kB / 417.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.206e-05/0.1546, allocations: 37.94 kB / 417.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.1548, allocations: 160.8 kB / 418.1 MB, free: 12.03 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.679e-05/0.1548, allocations: 47.77 kB / 418.1 MB, free: 11.98 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001172/0.155, allocations: 86.25 kB / 418.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.1552, allocations: 346.8 kB / 418.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001875/0.1553, allocations: 77.08 kB / 418.6 MB, free: 11.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005131/0.1559, allocations: 439 kB / 419 MB, free: 10.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006881/0.1566, allocations: 0.532 MB / 419.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.1566, allocations: 0 / 419.6 MB, free: 10.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008178/0.1574, allocations: 0.4891 MB / 420 MB, free: 9.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.1574, allocations: 10.19 kB / 420.1 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.1575, allocations: 12.84 kB / 420.1 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.313e-05/0.1575, allocations: 19.98 kB / 420.1 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003274/0.1578, allocations: 119.8 kB / 420.2 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.09e-05/0.1579, allocations: 27.86 kB / 420.2 MB, free: 9.496 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/0.1581, allocations: 47.73 kB / 420.3 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.147e-05/0.1582, allocations: 43.92 kB / 420.3 MB, free: 9.406 MB / 350.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.0002228/0.1584, allocations: 189 kB / 420.5 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006731/0.1591, allocations: 346.6 kB / 420.8 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007909/0.1599, allocations: 368.8 kB / 421.2 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.1599, allocations: 4 kB / 421.2 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1599, allocations: 0 / 421.2 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.16, allocations: 4 kB / 421.2 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00045/0.1604, allocations: 349 kB / 421.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.1604, allocations: 0 / 421.6 MB, free: 8.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003888/0.1608, allocations: 103.9 kB / 421.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.1608, allocations: 4 kB / 421.7 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.786e-05/0.1609, allocations: 8 kB / 421.7 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.1609, allocations: 4 kB / 421.7 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.738e-06/0.1609, allocations: 3.984 kB / 421.7 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001416/0.1623, allocations: 0.771 MB / 422.4 MB, free: 7.188 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001205/0.1624, allocations: 124.8 kB / 422.6 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.99e-05/0.1625, allocations: 16 kB / 422.6 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002544/0.1628, allocations: 32.03 kB / 422.6 MB, free: 7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.174e-05/0.1628, allocations: 4 kB / 422.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.89e-05/0.1629, allocations: 15.98 kB / 422.6 MB, free: 6.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001954/0.1631, allocations: 178 kB / 422.8 MB, free: 6.809 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1631, allocations: 0 / 422.8 MB, free: 6.809 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005743/0.1637, allocations: 76 kB / 422.9 MB, free: 6.734 MB / 350.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.001856/0.1655, allocations: 1.356 MB / 424.2 MB, free: 5.348 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008234/0.1664, allocations: 360.3 kB / 424.6 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1664, allocations: 1.75 kB / 424.6 MB, free: 5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.1665, allocations: 27.92 kB / 424.6 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/0.1676, allocations: 318.2 kB / 424.9 MB, free: 4.656 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005402/0.173, allocations: 3.817 MB / 428.7 MB, free: 420 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2486/0.4217, allocations: 0.8055 MB / 429.6 MB, free: 22.44 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002038/0.422, allocations: 39.42 kB / 429.6 MB, free: 22.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002291/0.4222, allocations: 115.1 kB / 429.7 MB, free: 22.43 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4222, allocations: 0 / 429.7 MB, free: 22.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04056/0.4628, allocations: 8.04 MB / 437.7 MB, free: 21.81 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.075/9.538, allocations: 5.234 kB / 437.7 MB, free: 21.8 MB / 350.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.183718310901895]