Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 200.9 kB / 17.05 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 226.6 MB / 244.3 MB, free: 8.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009856/0.0009855, allocations: 104.9 kB / 296.4 MB, free: 6.988 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002522/0.0002522, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2397/0.2399, allocations: 51.3 MB / 407.5 MB, free: 27.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.002312/0.2423, allocations: 2.249 MB / 409.7 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.2436, allocations: 0.8995 MB / 410.6 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002123/0.2438, allocations: 12.5 kB / 410.7 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00018/0.244, allocations: 40.22 kB / 410.7 MB, free: 24.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002442/0.2443, allocations: 40.48 kB / 410.7 MB, free: 24.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005612/0.2449, allocations: 193 kB / 410.9 MB, free: 24.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002487/0.2451, allocations: 331 kB / 411.2 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002011/0.2453, allocations: 122.3 kB / 411.4 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.532e-05/0.2454, allocations: 103.4 kB / 411.5 MB, free: 23.83 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001059/0.2455, allocations: 103.3 kB / 411.6 MB, free: 23.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.076e-05/0.2456, allocations: 8 kB / 411.6 MB, free: 23.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.968e-05/0.2457, allocations: 43.97 kB / 411.6 MB, free: 23.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.168e-05/0.2457, allocations: 56.94 kB / 411.7 MB, free: 23.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.917e-05/0.2458, allocations: 73.52 kB / 411.7 MB, free: 23.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002125/0.246, allocations: 288.3 kB / 412 MB, free: 23.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.246, allocations: 7.938 kB / 412 MB, free: 23.25 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.246, allocations: 0 / 412 MB, free: 23.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.2461, allocations: 4 kB / 412 MB, free: 23.25 MB / 298.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.0007885/0.2468, allocations: 0.5884 MB / 412.6 MB, free: 22.61 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.222e-05/0.2469, allocations: 12.03 kB / 412.6 MB, free: 22.6 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.425e-05/0.247, allocations: 35.53 kB / 412.7 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003063/0.2473, allocations: 318.8 kB / 413 MB, free: 22.21 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.2473, allocations: 16.56 kB / 413 MB, free: 22.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/0.2474, allocations: 28 kB / 413 MB, free: 22.17 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.2485, allocations: 0.7676 MB / 413.8 MB, free: 21.38 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.2485, allocations: 11.88 kB / 413.8 MB, free: 21.36 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.597e-05/0.2486, allocations: 12 kB / 413.8 MB, free: 21.35 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.2486, allocations: 8 kB / 413.8 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000507/0.2491, allocations: 243.6 kB / 414.1 MB, free: 21.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006147/0.2497, allocations: 0.78 MB / 414.8 MB, free: 20.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008785/0.2506, allocations: 0.6537 MB / 415.5 MB, free: 19.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003802/0.251, allocations: 267.4 kB / 415.8 MB, free: 19.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004845/0.2515, allocations: 0.5934 MB / 416.3 MB, free: 18.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.2515, allocations: 46.48 kB / 416.4 MB, free: 18.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 2.034e-06/0.2515, allocations: 0 / 416.4 MB, free: 18.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.001081/0.2526, allocations: 0.5571 MB / 417 MB, free: 17.91 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.341e-05/0.2527, allocations: 215.8 kB / 417.2 MB, free: 17.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00019/0.2529, allocations: 254.8 kB / 417.4 MB, free: 17.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.2529, allocations: 33.7 kB / 417.4 MB, free: 17.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.719e-05/0.253, allocations: 152.8 kB / 417.6 MB, free: 17.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.329e-05/0.2531, allocations: 47.61 kB / 417.6 MB, free: 17.15 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.072e-05/0.2531, allocations: 12 kB / 417.7 MB, free: 17.14 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.072e-05/0.2531, allocations: 346.9 kB / 418 MB, free: 16.79 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001612/0.2533, allocations: 85.02 kB / 418.1 MB, free: 16.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002681/0.2536, allocations: 442.9 kB / 418.5 MB, free: 16.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.2538, allocations: 155.9 kB / 418.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.2538, allocations: 8 kB / 418.7 MB, free: 15.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006144/0.2544, allocations: 0.5006 MB / 419.2 MB, free: 15.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.2545, allocations: 8 kB / 419.2 MB, free: 15.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.183e-05/0.2545, allocations: 12.84 kB / 419.2 MB, free: 15.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.2545, allocations: 16 kB / 419.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002858/0.2548, allocations: 127.8 kB / 419.3 MB, free: 15.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.792e-05/0.2548, allocations: 23.92 kB / 419.3 MB, free: 15.26 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.2551, allocations: 51.67 kB / 419.4 MB, free: 15.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.446e-05/0.2551, allocations: 28 kB / 419.4 MB, free: 15.18 MB / 298.7 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 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001679/0.2553, allocations: 197.1 kB / 419.6 MB, free: 14.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005356/0.2558, allocations: 360.7 kB / 420 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006173/0.2565, allocations: 369.4 kB / 420.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.605e-06/0.2565, allocations: 8 kB / 420.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2565, allocations: 0 / 420.3 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.2565, allocations: 4 kB / 420.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002878/0.2568, allocations: 345.1 kB / 420.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.991e-06/0.2568, allocations: 0 / 420.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/0.2572, allocations: 111.8 kB / 420.8 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.482e-06/0.2572, allocations: 3.953 kB / 420.8 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.324e-05/0.2572, allocations: 12 kB / 420.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.2572, allocations: 4 kB / 420.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.2572, allocations: 0 / 420.8 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001047/0.2583, allocations: 0.8139 MB / 421.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.315e-05/0.2584, allocations: 116.6 kB / 421.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.602e-05/0.2584, allocations: 23.94 kB / 421.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.2587, allocations: 35.98 kB / 421.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.842e-05/0.2587, allocations: 3.984 kB / 421.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.944e-05/0.2587, allocations: 16 kB / 421.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001225/0.2589, allocations: 182 kB / 422 MB, free: 12.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2589, allocations: 0 / 422 MB, free: 12.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004425/0.2593, allocations: 75.94 kB / 422.1 MB, free: 12.43 MB / 298.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000158/0.2595, allocations: 115.2 kB / 422.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006011/0.2601, allocations: 381.7 kB / 422.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.2601, allocations: 0 / 422.6 MB, free: 11.94 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.758e-05/0.2602, allocations: 39.97 kB / 422.6 MB, free: 11.9 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009396/0.2611, allocations: 312.7 kB / 422.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001205/0.2624, allocations: 0.916 MB / 423.8 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002005/0.2626, allocations: 0.8161 MB / 424.6 MB, free: 9.781 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.412e-05/0.2626, allocations: 27.44 kB / 424.7 MB, free: 9.754 MB / 298.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2627, allocations: 4 kB / 424.7 MB, free: 9.75 MB / 298.7 MB Notification: Performance of Templates: time 0.005003/0.2677, allocations: 4.384 MB / 429 MB, free: 5.391 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches