Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002974/0.002979, allocations: 189.7 kB / 16.44 MB, free: 5.668 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.21/4.21, allocations: 205.4 MB / 222.6 MB, free: 9.039 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001832/0.001832, allocations: 100.1 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1959/0.1959, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.196/0.1973, allocations: 50.37 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects): time 0.005103/0.2025, allocations: 2.238 MB / 444.6 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003252/0.2059, allocations: 0.8818 MB / 445.5 MB, free: 13.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006102/0.2066, allocations: 11.94 kB / 445.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.2068, allocations: 27.7 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007565/0.2076, allocations: 75.77 kB / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001848/0.2095, allocations: 211.5 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009267/0.2104, allocations: 239.4 kB / 446 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004773/0.211, allocations: 127.4 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002761/0.2113, allocations: 95.56 kB / 446.2 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002481/0.2115, allocations: 107.3 kB / 446.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.786e-05/0.2116, allocations: 8 kB / 446.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002189/0.2118, allocations: 43.95 kB / 446.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.212, allocations: 55.75 kB / 446.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.2121, allocations: 73.52 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005773/0.2127, allocations: 275.6 kB / 446.8 MB, free: 12 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2128, allocations: 0 / 446.8 MB, free: 12 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.2128, allocations: 0 / 446.8 MB, free: 12 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.2128, allocations: 0 / 446.8 MB, free: 12 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.001994/0.2148, allocations: 0.5962 MB / 447.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.072e-05/0.2149, allocations: 8.031 kB / 447.4 MB, free: 11.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002072/0.2151, allocations: 43.48 kB / 447.4 MB, free: 11.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008594/0.216, allocations: 314.7 kB / 447.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.739e-05/0.2161, allocations: 28.5 kB / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.996e-05/0.2162, allocations: 24 kB / 447.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00318/0.2194, allocations: 0.7714 MB / 448.6 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.593e-05/0.2196, allocations: 0 / 448.6 MB, free: 10.1 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-05/0.2197, allocations: 12 kB / 448.6 MB, free: 10.09 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.837e-05/0.2197, allocations: 7.984 kB / 448.6 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001506/0.2212, allocations: 255.6 kB / 448.8 MB, free: 9.832 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001849/0.2231, allocations: 0.7721 MB / 449.6 MB, free: 8.984 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002725/0.2259, allocations: 0.6497 MB / 450.2 MB, free: 8.262 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001165/0.2272, allocations: 0.5978 MB / 450.8 MB, free: 7.535 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.175e-05/0.2273, allocations: 38.34 kB / 450.9 MB, free: 7.488 MB / 298.7 MB Notification: Performance of pre-optimization done (n=52): time 6.152e-06/0.2273, allocations: 4 kB / 450.9 MB, free: 7.484 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.003317/0.2306, allocations: 0.6399 MB / 451.5 MB, free: 6.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001954/0.2309, allocations: 211.8 kB / 451.7 MB, free: 6.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005494/0.2315, allocations: 250.6 kB / 452 MB, free: 6.316 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.472e-05/0.2316, allocations: 37.7 kB / 452 MB, free: 6.273 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/0.2317, allocations: 211.2 kB / 452.2 MB, free: 6.066 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.2319, allocations: 47.73 kB / 452.3 MB, free: 6.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.777e-05/0.2319, allocations: 11.94 kB / 452.3 MB, free: 6.008 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.2321, allocations: 338.8 kB / 452.6 MB, free: 5.668 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004786/0.2325, allocations: 85.08 kB / 452.7 MB, free: 5.586 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007559/0.2333, allocations: 435 kB / 453.1 MB, free: 4.992 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006833/0.2341, allocations: 163.8 kB / 453.3 MB, free: 4.832 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.527e-05/0.2341, allocations: 4 kB / 453.3 MB, free: 4.828 MB / 298.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001922/0.2361, allocations: 493.1 kB / 453.8 MB, free: 4.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.633e-05/0.2362, allocations: 8 kB / 453.8 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.761e-05/0.2362, allocations: 12 kB / 453.8 MB, free: 4.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.083e-05/0.2363, allocations: 20 kB / 453.8 MB, free: 4.301 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009632/0.2373, allocations: 120.4 kB / 453.9 MB, free: 4.184 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-05/0.2374, allocations: 27.92 kB / 453.9 MB, free: 4.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007932/0.2382, allocations: 51.67 kB / 454 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.08e-05/0.2383, allocations: 31.94 kB / 454 MB, free: 4.074 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.0004661/0.2388, allocations: 193.5 kB / 454.2 MB, free: 3.875 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001672/0.2405, allocations: 357.9 kB / 454.6 MB, free: 3.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001714/0.2423, allocations: 372.7 kB / 454.9 MB, free: 3.148 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.213e-05/0.2423, allocations: 4 kB / 454.9 MB, free: 3.145 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.402e-05/0.2424, allocations: 11.94 kB / 454.9 MB, free: 3.133 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.2424, allocations: 0 / 454.9 MB, free: 3.133 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008631/0.2433, allocations: 345 kB / 455.3 MB, free: 2.746 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.009e-05/0.2433, allocations: 8 kB / 455.3 MB, free: 2.738 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001158/0.2445, allocations: 103.9 kB / 455.4 MB, free: 2.637 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-05/0.2446, allocations: 4 kB / 455.4 MB, free: 2.633 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.15e-05/0.2447, allocations: 12 kB / 455.4 MB, free: 2.621 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.387e-06/0.2447, allocations: 0 / 455.4 MB, free: 2.621 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.113e-06/0.2447, allocations: 4 kB / 455.4 MB, free: 2.617 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003317/0.2481, allocations: 0.8428 MB / 456.3 MB, free: 1.73 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002066/0.2484, allocations: 124.5 kB / 456.4 MB, free: 1.59 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.2485, allocations: 12 kB / 456.4 MB, free: 1.578 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007328/0.2493, allocations: 32.05 kB / 456.4 MB, free: 1.547 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.2494, allocations: 19.92 kB / 456.4 MB, free: 1.527 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.412e-05/0.2495, allocations: 8 kB / 456.4 MB, free: 1.52 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003831/0.2499, allocations: 186 kB / 456.6 MB, free: 1.336 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.52e-07/0.25, allocations: 0 / 456.6 MB, free: 1.336 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001367/0.2513, allocations: 76 kB / 456.7 MB, free: 1.262 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.0003653/0.2518, allocations: 123.2 kB / 456.8 MB, free: 1.133 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001893/0.2537, allocations: 372.9 kB / 457.2 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/0.2538, allocations: 0.5625 kB / 457.2 MB, free: 0.7734 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002456/0.254, allocations: 39.91 kB / 457.2 MB, free: 0.7344 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002238/0.2563, allocations: 302.9 kB / 457.5 MB, free: 444 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004191/0.2606, allocations: 0.9126 MB / 458.4 MB, free: 15.48 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009746/0.2616, allocations: 0.8239 MB / 459.3 MB, free: 14.63 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002551/0.2619, allocations: 35.38 kB / 459.3 MB, free: 14.59 MB / 314.7 MB Notification: Performance of SimCode: time 1.604e-06/0.262, allocations: 0 / 459.3 MB, free: 14.59 MB / 314.7 MB Notification: Performance of Templates: time 0.02929/0.2913, allocations: 4.325 MB / 463.6 MB, free: 10.27 MB / 314.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches