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.004292/0.004292, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001352/0.001352, allocations: 141 kB / 25.59 MB, free: 8.906 MB / 18.57 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 0.915/0.915, allocations: 173.4 MB / 202.2 MB, free: 8.266 MB / 186.7 MB " [Timeout remaining time 179] 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: 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.0.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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 269.2 MB, free: 9.797 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.57e-05/1.747e-05, allocations: 6.312 kB / 269.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002899/0.002916, allocations: 2.613 MB / 271.8 MB, free: 7.172 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.004008, allocations: 0.891 MB / 272.7 MB, free: 6.281 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.004143, allocations: 15.88 kB / 272.7 MB, free: 6.266 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000139/0.004282, allocations: 59.92 kB / 272.7 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.004461, allocations: 73.19 kB / 272.8 MB, free: 6.137 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003833/0.004844, allocations: 248.5 kB / 273.1 MB, free: 5.895 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002662/0.00511, allocations: 374.8 kB / 273.4 MB, free: 5.527 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001767/0.005287, allocations: 129.4 kB / 273.6 MB, free: 5.398 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.005448, allocations: 204 kB / 273.8 MB, free: 5.199 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001159/0.005564, allocations: 112.2 kB / 273.9 MB, free: 5.09 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.541e-05/0.0056, allocations: 33.97 kB / 273.9 MB, free: 5.059 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.228e-05/0.005682, allocations: 67.97 kB / 274 MB, free: 4.992 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.964e-05/0.005752, allocations: 83.66 kB / 274 MB, free: 4.91 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.281e-05/0.005824, allocations: 107.7 kB / 274.2 MB, free: 4.805 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002503/0.006075, allocations: 274.8 kB / 274.4 MB, free: 4.535 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.453e-06/0.006076, allocations: 0 / 274.4 MB, free: 4.535 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.006077, allocations: 1.75 kB / 274.4 MB, free: 4.535 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.00608, allocations: 0 / 274.4 MB, free: 4.535 MB / 250.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.0005986/0.006679, allocations: 0.6643 MB / 275.1 MB, free: 3.832 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.53e-05/0.006704, allocations: 8.781 kB / 275.1 MB, free: 3.824 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.585e-05/0.00677, allocations: 64.66 kB / 275.2 MB, free: 3.762 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002393/0.007009, allocations: 276.5 kB / 275.4 MB, free: 3.469 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.208e-05/0.007031, allocations: 25.03 kB / 275.5 MB, free: 3.445 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.158e-05/0.007063, allocations: 28.38 kB / 275.5 MB, free: 3.418 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005383/0.007601, allocations: 0.6115 MB / 276.1 MB, free: 2.75 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.007615, allocations: 192 / 276.1 MB, free: 2.75 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.95e-05/0.007635, allocations: 19.94 kB / 276.1 MB, free: 2.73 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.007641, allocations: 4 kB / 276.1 MB, free: 2.727 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.007741, allocations: 75.81 kB / 276.2 MB, free: 2.652 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004811/0.008222, allocations: 0.7611 MB / 277 MB, free: 1.832 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.008565, allocations: 313.7 kB / 277.3 MB, free: 1.473 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.008694, allocations: 151.3 kB / 277.4 MB, free: 1.309 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001776/0.008871, allocations: 56.06 kB / 277.5 MB, free: 1.254 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.542e-05/0.008897, allocations: 61.09 kB / 277.5 MB, free: 1.184 MB / 250.7 MB Notification: Performance of pre-optimization done (n=52): time 1.573e-06/0.008898, allocations: 0 / 277.5 MB, free: 1.184 MB / 250.7 MB Notification: Performance of matching and sorting (n=52): time 0.0003631/0.009261, allocations: 308.9 kB / 277.8 MB, free: 0.875 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.837e-05/0.00935, allocations: 213 kB / 278 MB, free: 0.625 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.009499, allocations: 288.3 kB / 278.3 MB, free: 336 kB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.009519, allocations: 37.7 kB / 278.3 MB, free: 292 kB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.488e-05/0.009614, allocations: 203.5 kB / 278.5 MB, free: 84 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.111e-05/0.009635, allocations: 35.78 kB / 278.6 MB, free: 48 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.272e-05/0.009688, allocations: 43.42 kB / 278.6 MB, free: 15.99 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.009803, allocations: 0.5039 MB / 279.1 MB, free: 15.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.767e-05/0.00982, allocations: 8 kB / 279.1 MB, free: 15.47 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.105e-05/0.009911, allocations: 190.4 kB / 279.3 MB, free: 15.22 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.85e-05/0.01, allocations: 140.4 kB / 279.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.01, allocations: 3.938 kB / 279.5 MB, free: 15.04 MB / 266.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0001293/0.01013, allocations: 137.5 kB / 279.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.037e-05/0.01014, allocations: 4 kB / 279.6 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.01015, allocations: 7.938 kB / 279.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.027e-06/0.01015, allocations: 7.938 kB / 279.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.638e-05/0.01023, allocations: 31.98 kB / 279.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.01024, allocations: 11.92 kB / 279.7 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.297e-05/0.0103, allocations: 23.83 kB / 279.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.547e-06/0.01031, allocations: 4 kB / 279.7 MB, free: 14.8 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.0001175/0.01043, allocations: 188.7 kB / 279.9 MB, free: 14.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004145/0.01084, allocations: 233.5 kB / 280.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002619/0.01111, allocations: 232.8 kB / 280.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.302e-06/0.01111, allocations: 11.97 kB / 280.3 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.01112, allocations: 7.984 kB / 280.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.01112, allocations: 0 / 280.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001816/0.0113, allocations: 184.9 kB / 280.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.01131, allocations: 8 kB / 280.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002551/0.01156, allocations: 95.88 kB / 280.6 MB, free: 13.81 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.01157, allocations: 8 kB / 280.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.01159, allocations: 8 kB / 280.6 MB, free: 13.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.01159, allocations: 4 kB / 280.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01159, allocations: 0 / 280.6 MB, free: 13.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001817/0.01177, allocations: 370.2 kB / 281 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.635e-05/0.01181, allocations: 51.64 kB / 281.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.448e-05/0.01184, allocations: 16 kB / 281.1 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001181/0.01196, allocations: 19.98 kB / 281.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.443e-05/0.01199, allocations: 11.92 kB / 281.1 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.649e-05/0.012, allocations: 12 kB / 281.1 MB, free: 13.29 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001031/0.01211, allocations: 201.1 kB / 281.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01211, allocations: 0 / 281.3 MB, free: 13.09 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002573/0.01236, allocations: 59.95 kB / 281.4 MB, free: 13.04 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.000107/0.01247, allocations: 127.1 kB / 281.5 MB, free: 12.9 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001541/0.01263, allocations: 126.7 kB / 281.6 MB, free: 12.78 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.152e-06/0.01263, allocations: 4.562 kB / 281.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.012e-05/0.01265, allocations: 19.69 kB / 281.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.01311, allocations: 226.6 kB / 281.9 MB, free: 12.53 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007909/0.0139, allocations: 0.6515 MB / 282.5 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.485e-05/0.01398, allocations: 133.2 kB / 282.6 MB, free: 11.68 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.391e-05/0.01402, allocations: 22.97 kB / 282.7 MB, free: 11.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001438/0.01416, allocations: 142.1 kB / 282.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of SimCode: time 5.2e-07/0.01416, allocations: 0 / 282.8 MB, free: 11.52 MB / 266.7 MB Notification: Performance of Templates: time 0.006419/0.02058, allocations: 5.081 MB / 287.9 MB, free: 6.516 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.7643906041048467]