Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 107.1 kB / 20.44 MB, free: 1.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 209.4 kB / 23.73 MB, free: 4.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.378/1.378, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,fileNamePrefix="Modelica_4_1_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_1_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.001421/0.001421, allocations: 47.92 kB / 377.7 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2477/0.2491, allocations: 53.38 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004129/0.2532, allocations: 2.56 MB / 433.6 MB, free: 4.094 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001614/0.2548, allocations: 0.8961 MB / 434.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001869/0.255, allocations: 11.88 kB / 434.5 MB, free: 3.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002019/0.2552, allocations: 63.33 kB / 434.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000235/0.2554, allocations: 71.44 kB / 434.7 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006809/0.2561, allocations: 242.5 kB / 434.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004234/0.2565, allocations: 386.8 kB / 435.3 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002632/0.2568, allocations: 133.4 kB / 435.4 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.257, allocations: 151.4 kB / 435.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001936/0.2572, allocations: 139.3 kB / 435.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.008e-05/0.2572, allocations: 32 kB / 435.7 MB, free: 1.988 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.2573, allocations: 71.95 kB / 435.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.2575, allocations: 83.62 kB / 435.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001365/0.2576, allocations: 131.3 kB / 436 MB, free: 1.707 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004816/0.2581, allocations: 423.8 kB / 436.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.2581, allocations: 0 / 436.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2581, allocations: 4 kB / 436.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.831e-06/0.2581, allocations: 0 / 436.4 MB, free: 1.289 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.001014/0.2591, allocations: 0.5753 MB / 437 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.2591, allocations: 12.03 kB / 437 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.042e-05/0.2592, allocations: 62.72 kB / 437.1 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.305e-05/0.2593, allocations: 40.7 kB / 437.1 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004309/0.2597, allocations: 273.9 kB / 437.4 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.2597, allocations: 21.03 kB / 437.4 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.743e-05/0.2598, allocations: 32.12 kB / 437.4 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.2612, allocations: 0.7834 MB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.2612, allocations: 3.938 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.259e-05/0.2612, allocations: 19.92 kB / 438.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.2612, allocations: 8 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005296/0.2618, allocations: 219.8 kB / 438.5 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008115/0.2626, allocations: 0.6565 MB / 439.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009842/0.2636, allocations: 453.3 kB / 439.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004513/0.264, allocations: 255.7 kB / 439.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004115/0.2644, allocations: 75.64 kB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.102e-05/0.2645, allocations: 38.56 kB / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=52): time 2.014e-06/0.2645, allocations: 0 / 439.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.00118/0.2656, allocations: 0.5244 MB / 440.4 MB, free: 13.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001448/0.2658, allocations: 203.9 kB / 440.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002695/0.2661, allocations: 253.9 kB / 440.9 MB, free: 12.53 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.475e-05/0.2661, allocations: 33.7 kB / 440.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.2662, allocations: 153.1 kB / 441.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.325e-05/0.2663, allocations: 59.66 kB / 441.1 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.2664, allocations: 82.19 kB / 441.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001473/0.2665, allocations: 342.8 kB / 441.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001841/0.2667, allocations: 88.94 kB / 441.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004539/0.2671, allocations: 485.5 kB / 442.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006175/0.2678, allocations: 0.5242 MB / 442.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.2678, allocations: 8 kB / 442.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007747/0.2685, allocations: 0.4933 MB / 443.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/0.2686, allocations: 12 kB / 443.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.2686, allocations: 12 kB / 443.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.712e-05/0.2686, allocations: 16 kB / 443.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003267/0.2689, allocations: 119.8 kB / 443.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.914e-05/0.2689, allocations: 19.92 kB / 443.3 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002595/0.2692, allocations: 56.27 kB / 443.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.256e-05/0.2692, allocations: 28 kB / 443.4 MB, free: 9.656 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.0001996/0.2694, allocations: 197.5 kB / 443.6 MB, free: 9.453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000621/0.2701, allocations: 338.1 kB / 443.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006747/0.2707, allocations: 360.7 kB / 444.3 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.2707, allocations: 8.469 kB / 444.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.2707, allocations: 0 / 444.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.2708, allocations: 3.984 kB / 444.3 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003555/0.2711, allocations: 268.2 kB / 444.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.2711, allocations: 0 / 444.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003884/0.2715, allocations: 99.88 kB / 444.6 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.782e-06/0.2715, allocations: 7.984 kB / 444.6 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.117e-05/0.2715, allocations: 19.92 kB / 444.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2715, allocations: 4 kB / 444.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.2715, allocations: 7.938 kB / 444.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001242/0.2728, allocations: 0.7709 MB / 445.4 MB, free: 7.508 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.428e-05/0.2729, allocations: 39.7 kB / 445.5 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.539e-05/0.2729, allocations: 20.05 kB / 445.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.2732, allocations: 23.98 kB / 445.5 MB, free: 7.426 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.869e-05/0.2732, allocations: 7.984 kB / 445.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.849e-05/0.2732, allocations: 12 kB / 445.6 MB, free: 7.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001854/0.2734, allocations: 189.2 kB / 445.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2734, allocations: 0 / 445.7 MB, free: 7.223 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004856/0.2739, allocations: 79.83 kB / 445.8 MB, free: 7.145 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.001641/0.2755, allocations: 1.34 MB / 447.2 MB, free: 5.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006807/0.2762, allocations: 357.6 kB / 447.5 MB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.2762, allocations: 4 kB / 447.5 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001037/0.2763, allocations: 32.03 kB / 447.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009912/0.2773, allocations: 289.1 kB / 447.8 MB, free: 5.105 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004778/0.2821, allocations: 3.834 MB / 451.7 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001936/0.2823, allocations: 202.5 kB / 451.9 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.2824, allocations: 39.27 kB / 451.9 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000165/0.2826, allocations: 111.4 kB / 452 MB, free: 492 kB / 350.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2826, allocations: 0 / 452 MB, free: 492 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03829/0.3209, allocations: 9.162 MB / 461.2 MB, free: 7.512 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.74/11.06, allocations: 11.94 kB / 461.2 MB, free: 7.5 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects_fmu --startTime=0 --stopTime=5 --stepSize=0.0009802 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWith_AD_DA_Effects.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/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_4.1.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: 13.394136977003654]