Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.006917/0.006921, allocations: 182.2 kB / 16.44 MB, free: 5.707 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.711/4.711, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.00617/0.006171, allocations: 93.88 kB / 270.9 MB, free: 8.359 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.2505/0.2505, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008996/0.0009001, allocations: 19.98 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1977/0.1986, allocations: 50.38 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004034/0.2027, allocations: 1.681 MB / 444 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001688/0.2045, allocations: 0.5117 MB / 444.5 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001865/0.2048, allocations: 3.938 kB / 444.5 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.524e-05/0.2049, allocations: 15.92 kB / 444.6 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002072/0.2051, allocations: 35.86 kB / 444.6 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000575/0.2057, allocations: 47.83 kB / 444.6 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003575/0.2061, allocations: 87.83 kB / 444.7 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002434/0.2063, allocations: 45.45 kB / 444.8 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.2065, allocations: 35.8 kB / 444.8 MB, free: 13.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001308/0.2066, allocations: 51.77 kB / 444.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.351e-05/0.2067, allocations: 4 kB / 444.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.585e-05/0.2068, allocations: 4 kB / 444.9 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.822e-05/0.2068, allocations: 15.92 kB / 444.9 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.317e-05/0.2069, allocations: 49.64 kB / 444.9 MB, free: 13.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002233/0.2072, allocations: 84.05 kB / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2072, allocations: 0 / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.2072, allocations: 0 / 445 MB, free: 13.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.2072, allocations: 7.938 kB / 445 MB, free: 13.77 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0009969/0.2082, allocations: 418.8 kB / 445.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.183e-05/0.2083, allocations: 8.031 kB / 445.4 MB, free: 13.31 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.465e-05/0.2084, allocations: 15.81 kB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003693/0.2088, allocations: 202.8 kB / 445.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.998e-05/0.2089, allocations: 8 kB / 445.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.433e-05/0.209, allocations: 23.94 kB / 445.7 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001058/0.2101, allocations: 226.6 kB / 445.9 MB, free: 12.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.575e-05/0.2102, allocations: 7.844 kB / 445.9 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.2102, allocations: 4 kB / 445.9 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.2102, allocations: 4 kB / 445.9 MB, free: 12.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005853/0.2108, allocations: 95.86 kB / 446 MB, free: 12.67 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00123/0.2121, allocations: 0.5998 MB / 446.6 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006683/0.2128, allocations: 151.9 kB / 446.8 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.064e-05/0.2129, allocations: 4.125 kB / 446.8 MB, free: 11.81 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.213, allocations: 42.56 kB / 446.8 MB, free: 11.76 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 5.601e-06/0.213, allocations: 0 / 446.8 MB, free: 11.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.001243/0.2142, allocations: 189.6 kB / 447 MB, free: 11.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001135/0.2144, allocations: 114.8 kB / 447.1 MB, free: 11.43 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.2146, allocations: 142 kB / 447.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.628e-05/0.2147, allocations: 25.7 kB / 447.3 MB, free: 11.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.2148, allocations: 182.4 kB / 447.4 MB, free: 11.07 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.777e-05/0.2149, allocations: 23.7 kB / 447.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.454e-05/0.2149, allocations: 8.031 kB / 447.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.178e-05/0.215, allocations: 318.8 kB / 447.8 MB, free: 10.72 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002836/0.2153, allocations: 40.34 kB / 447.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003734/0.2157, allocations: 154.2 kB / 448 MB, free: 10.48 MB / 298.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0005795/0.2163, allocations: 161.4 kB / 448.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.452e-06/0.2163, allocations: 0 / 448.1 MB, free: 10.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0008323/0.2172, allocations: 197.2 kB / 448.3 MB, free: 10.11 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/0.2172, allocations: 8 kB / 448.3 MB, free: 10.1 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.628e-05/0.2173, allocations: 11.92 kB / 448.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.349e-05/0.2173, allocations: 4 kB / 448.4 MB, free: 10.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004095/0.2178, allocations: 44.39 kB / 448.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.067e-05/0.2178, allocations: 8 kB / 448.4 MB, free: 10.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003069/0.2181, allocations: 27.83 kB / 448.4 MB, free: 10 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.002e-05/0.2182, allocations: 8 kB / 448.4 MB, free: 9.996 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0002418/0.2184, allocations: 137.7 kB / 448.6 MB, free: 9.852 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003685/0.2188, allocations: 93.75 kB / 448.7 MB, free: 9.754 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.203e-05/0.2189, allocations: 16.72 kB / 448.7 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.219, allocations: 3.984 kB / 448.7 MB, free: 9.734 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.219, allocations: 4 kB / 448.7 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.219, allocations: 4 kB / 448.7 MB, free: 9.727 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005434/0.2196, allocations: 209.5 kB / 448.9 MB, free: 9.473 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.734e-06/0.2196, allocations: 3.953 kB / 448.9 MB, free: 9.469 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006043/0.2202, allocations: 51.91 kB / 449 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.236e-05/0.2203, allocations: 0 / 449 MB, free: 9.418 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.47e-05/0.2203, allocations: 4 kB / 449 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.227e-05/0.2203, allocations: 4 kB / 449 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.2204, allocations: 0 / 449 MB, free: 9.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.2216, allocations: 430.8 kB / 449.4 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.2218, allocations: 92.89 kB / 449.5 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.261e-05/0.2219, allocations: 0 / 449.5 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004706/0.2224, allocations: 15.98 kB / 449.5 MB, free: 8.832 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.5e-05/0.2225, allocations: 4 kB / 449.5 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.614e-05/0.2226, allocations: 12.05 kB / 449.5 MB, free: 8.816 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001485/0.2228, allocations: 99.27 kB / 449.6 MB, free: 8.719 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.2228, allocations: 0 / 449.6 MB, free: 8.719 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009815/0.2238, allocations: 31.95 kB / 449.6 MB, free: 8.688 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 Backend phase and start with SimCode phase: time 0.0002129/0.224, allocations: 95.25 kB / 449.7 MB, free: 8.582 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.2251, allocations: 131.8 kB / 449.9 MB, free: 8.453 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.886e-06/0.2252, allocations: 4 kB / 449.9 MB, free: 8.449 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002915/0.2255, allocations: 32.8 kB / 449.9 MB, free: 8.418 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009406/0.2265, allocations: 64.97 kB / 449.9 MB, free: 8.355 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.2284, allocations: 0.5247 MB / 450.5 MB, free: 7.789 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003046/0.2287, allocations: 0.7245 MB / 451.2 MB, free: 7.039 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001019/0.2289, allocations: 15.44 kB / 451.2 MB, free: 7.023 MB / 298.7 MB Notification: Performance of SimCode: time 1.953e-06/0.2289, allocations: 0 / 451.2 MB, free: 7.023 MB / 298.7 MB Notification: Performance of Templates: time 0.01152/0.2404, allocations: 1.571 MB / 452.8 MB, free: 5.457 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches