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.0008706/0.0008706, allocations: 71.77 kB / 21.69 MB, free: 2.855 MB / 18.57 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.0009186/0.0009186, allocations: 166.4 kB / 24.99 MB, free: 8.746 MB / 18.57 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 0.9937/0.9937, allocations: 177.1 MB / 205.3 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5101,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5101,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.984e-06/1.984e-06, allocations: 0 / 273 MB, free: 1.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.757e-05/3.955e-05, allocations: 2.312 kB / 273 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.004975/0.005015, allocations: 2.648 MB / 275.7 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00202/0.007034, allocations: 0.9307 MB / 276.6 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003177/0.007352, allocations: 11.88 kB / 276.6 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002146/0.007567, allocations: 55.39 kB / 276.7 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000254/0.007821, allocations: 75.38 kB / 276.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006159/0.008437, allocations: 243.4 kB / 277 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000331/0.008768, allocations: 382.8 kB / 277.4 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002309/0.008998, allocations: 129.4 kB / 277.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001902/0.009189, allocations: 207.5 kB / 277.7 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001489/0.009338, allocations: 103.6 kB / 277.8 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.357e-05/0.009381, allocations: 36 kB / 277.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001068/0.009488, allocations: 75.89 kB / 277.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.761e-05/0.009586, allocations: 79.67 kB / 278 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.03e-05/0.009676, allocations: 107.7 kB / 278.1 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003372/0.01001, allocations: 274.9 kB / 278.4 MB, free: 12.53 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.935e-06/0.01002, allocations: 0 / 278.4 MB, free: 12.53 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.01002, allocations: 0 / 278.4 MB, free: 12.53 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.01002, allocations: 0 / 278.4 MB, free: 12.53 MB / 266.7 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.0008066/0.01083, allocations: 0.6635 MB / 279 MB, free: 11.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.01087, allocations: 8.031 kB / 279 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001068/0.01098, allocations: 60.7 kB / 279.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003248/0.0113, allocations: 280 kB / 279.4 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.01133, allocations: 25.03 kB / 279.4 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.118e-05/0.01137, allocations: 32.31 kB / 279.4 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000784/0.01216, allocations: 0.6391 MB / 280 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.49e-05/0.01217, allocations: 192 / 280 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.0122, allocations: 15.94 kB / 280.1 MB, free: 10.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.01221, allocations: 7.984 kB / 280.1 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001629/0.01237, allocations: 98.48 kB / 280.2 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006063/0.01298, allocations: 0.7456 MB / 280.9 MB, free: 9.789 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004751/0.01346, allocations: 351 kB / 281.3 MB, free: 9.395 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001821/0.01364, allocations: 182.6 kB / 281.4 MB, free: 9.199 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002323/0.01387, allocations: 71.94 kB / 281.5 MB, free: 9.129 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.687e-05/0.0139, allocations: 45.38 kB / 281.6 MB, free: 9.074 MB / 266.7 MB Notification: Performance of pre-optimization done (n=52): time 2.034e-06/0.0139, allocations: 4 kB / 281.6 MB, free: 9.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=52): time 0.00049/0.01439, allocations: 345.1 kB / 281.9 MB, free: 8.727 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.75e-05/0.01449, allocations: 212.8 kB / 282.1 MB, free: 8.477 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/0.0147, allocations: 296.2 kB / 282.4 MB, free: 8.172 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/0.01472, allocations: 29.7 kB / 282.4 MB, free: 8.137 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.01482, allocations: 207.5 kB / 282.6 MB, free: 7.93 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.612e-05/0.01485, allocations: 35.88 kB / 282.7 MB, free: 7.895 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.504e-05/0.0149, allocations: 43.83 kB / 282.7 MB, free: 7.844 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.01503, allocations: 0.5001 MB / 283.2 MB, free: 7.332 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.032e-05/0.01506, allocations: 20.12 kB / 283.2 MB, free: 7.312 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001057/0.01517, allocations: 187.2 kB / 283.4 MB, free: 7.062 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000109/0.01528, allocations: 144.5 kB / 283.5 MB, free: 6.875 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.01528, allocations: 0 / 283.5 MB, free: 6.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001563/0.01543, allocations: 149.2 kB / 283.7 MB, free: 6.723 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.01545, allocations: 8 kB / 283.7 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.47e-06/0.01545, allocations: 3.984 kB / 283.7 MB, free: 6.711 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.058e-05/0.01547, allocations: 7.938 kB / 283.7 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.75e-05/0.01556, allocations: 40.23 kB / 283.7 MB, free: 6.664 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.01557, allocations: 8 kB / 283.8 MB, free: 6.656 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.611e-05/0.01563, allocations: 23.83 kB / 283.8 MB, free: 6.633 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.01564, allocations: 8 kB / 283.8 MB, free: 6.625 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (18): * Single equations (assignments): 18 * 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.0001147/0.01576, allocations: 186.9 kB / 284 MB, free: 6.434 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003303/0.01609, allocations: 249.3 kB / 284.2 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003458/0.01643, allocations: 265 kB / 284.5 MB, free: 5.922 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.01644, allocations: 11.88 kB / 284.5 MB, free: 5.91 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.01644, allocations: 4 kB / 284.5 MB, free: 5.906 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.01645, allocations: 4 kB / 284.5 MB, free: 5.902 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000216/0.01667, allocations: 220.3 kB / 284.7 MB, free: 5.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.927e-06/0.01667, allocations: 7.984 kB / 284.7 MB, free: 5.645 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002677/0.01694, allocations: 95.88 kB / 284.8 MB, free: 5.551 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.01695, allocations: 3.938 kB / 284.8 MB, free: 5.547 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.671e-05/0.01697, allocations: 12 kB / 284.8 MB, free: 5.535 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.96e-06/0.01698, allocations: 4 kB / 284.8 MB, free: 5.531 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.01698, allocations: 3.938 kB / 284.8 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006091/0.01759, allocations: 0.6461 MB / 285.5 MB, free: 4.852 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.627e-05/0.01763, allocations: 47.7 kB / 285.5 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.69e-05/0.01766, allocations: 12 kB / 285.5 MB, free: 4.793 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.01778, allocations: 15.98 kB / 285.5 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.11e-05/0.01783, allocations: 11.92 kB / 285.6 MB, free: 4.766 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.133e-05/0.01785, allocations: 16 kB / 285.6 MB, free: 4.75 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001075/0.01795, allocations: 205.1 kB / 285.8 MB, free: 4.547 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01795, allocations: 0 / 285.8 MB, free: 4.547 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002596/0.01821, allocations: 63.89 kB / 285.8 MB, free: 4.484 MB / 266.7 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.0001521/0.01837, allocations: 123.2 kB / 286 MB, free: 4.352 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002149/0.01858, allocations: 147.9 kB / 286.1 MB, free: 4.207 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.01858, allocations: 0 / 286.1 MB, free: 4.207 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.676e-05/0.01861, allocations: 15.69 kB / 286.1 MB, free: 4.188 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005623/0.01917, allocations: 237.3 kB / 286.4 MB, free: 3.953 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.0202, allocations: 0.6748 MB / 287 MB, free: 3.23 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.264e-05/0.02029, allocations: 125.2 kB / 287.1 MB, free: 3.082 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.978e-05/0.02035, allocations: 26.97 kB / 287.2 MB, free: 3.059 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.029e-05/0.02041, allocations: 28.5 kB / 287.2 MB, free: 3.027 MB / 266.7 MB Notification: Performance of SimCode: time 6.91e-07/0.02041, allocations: 0 / 287.2 MB, free: 3.027 MB / 266.7 MB Notification: Performance of Templates: time 0.006714/0.02712, allocations: 4.648 MB / 291.9 MB, free: 14.44 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins/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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.934377995086834]