Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001338/0.001338, allocations: 197.2 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.502/1.502, allocations: 226.6 MB / 244.3 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007682/0.0007683, allocations: 100.5 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002446/0.0002447, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2219/0.2221, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.001998/0.2242, allocations: 2.001 MB / 409.5 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009408/0.2251, allocations: 0.6683 MB / 410.2 MB, free: 25.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.2253, allocations: 7.938 kB / 410.2 MB, free: 25.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.2254, allocations: 19.84 kB / 410.2 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.981e-05/0.2255, allocations: 48.83 kB / 410.2 MB, free: 25.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002607/0.2257, allocations: 73.62 kB / 410.3 MB, free: 25.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001882/0.2259, allocations: 231 kB / 410.5 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001765/0.2261, allocations: 93.77 kB / 410.6 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000191/0.2263, allocations: 91.69 kB / 410.7 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.2265, allocations: 95.59 kB / 410.8 MB, free: 24.53 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.209e-05/0.2265, allocations: 12 kB / 410.8 MB, free: 24.52 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.769e-05/0.2266, allocations: 12 kB / 410.8 MB, free: 24.51 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.848e-05/0.2266, allocations: 39.83 kB / 410.9 MB, free: 24.47 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.565e-05/0.2267, allocations: 69.58 kB / 410.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001741/0.2269, allocations: 196.4 kB / 411.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.2269, allocations: 4 kB / 411.1 MB, free: 24.2 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2269, allocations: 7.938 kB / 411.1 MB, free: 24.19 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.2269, allocations: 3.938 kB / 411.1 MB, free: 24.19 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007805/0.2277, allocations: 0.6288 MB / 411.8 MB, free: 23.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.2277, allocations: 12.03 kB / 411.8 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001649/0.2279, allocations: 43.56 kB / 411.8 MB, free: 23.44 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.2281, allocations: 235.4 kB / 412.1 MB, free: 23.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.335e-05/0.2282, allocations: 49.7 kB / 412.1 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.995e-05/0.2282, allocations: 19.95 kB / 412.1 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005028/0.2287, allocations: 267.9 kB / 412.4 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.2288, allocations: 0 / 412.4 MB, free: 22.82 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.2288, allocations: 8 kB / 412.4 MB, free: 22.81 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.2288, allocations: 4 kB / 412.4 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004379/0.2292, allocations: 216.3 kB / 412.6 MB, free: 22.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001062/0.2303, allocations: 0.768 MB / 413.4 MB, free: 21.76 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004919/0.2308, allocations: 303.9 kB / 413.7 MB, free: 21.46 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003555/0.2312, allocations: 236.2 kB / 413.9 MB, free: 21.23 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.589e-05/0.2312, allocations: 4 kB / 413.9 MB, free: 21.22 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00042/0.2316, allocations: 325.4 kB / 414.2 MB, free: 20.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.513e-06/0.2317, allocations: 0 / 414.2 MB, free: 20.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0009844/0.2326, allocations: 0.5959 MB / 414.8 MB, free: 20.26 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.844e-05/0.2327, allocations: 199.9 kB / 415 MB, free: 20.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.2328, allocations: 182 kB / 415.2 MB, free: 19.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.2329, allocations: 37.7 kB / 415.2 MB, free: 19.79 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.53e-05/0.2329, allocations: 132.7 kB / 415.4 MB, free: 19.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.028e-05/0.233, allocations: 82.98 kB / 415.4 MB, free: 19.58 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.327e-05/0.233, allocations: 8 kB / 415.4 MB, free: 19.57 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.179e-05/0.2331, allocations: 335 kB / 415.8 MB, free: 19.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002049/0.2333, allocations: 116.6 kB / 415.9 MB, free: 19.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002245/0.2335, allocations: 179 kB / 416.1 MB, free: 18.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.2338, allocations: 221.7 kB / 416.3 MB, free: 18.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.2338, allocations: 0 / 416.3 MB, free: 18.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0005762/0.2344, allocations: 456.8 kB / 416.7 MB, free: 18.21 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.004e-05/0.2344, allocations: 89.09 kB / 416.8 MB, free: 18.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.2345, allocations: 8.094 kB / 416.8 MB, free: 18.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.2345, allocations: 4 kB / 416.8 MB, free: 18.1 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001742/0.2347, allocations: 43.91 kB / 416.9 MB, free: 18.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.194e-06/0.2347, allocations: 0 / 416.9 MB, free: 18.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.2348, allocations: 47.61 kB / 416.9 MB, free: 18.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.2349, allocations: 12 kB / 416.9 MB, free: 18 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.dA_Converter.y,dA_Converter.y,$PRE.aD_Converter.z,aD_Converter.z,$PRE.aD_Converter.y[1],aD_Converter.y[1],$PRE.aD_Converter.y[2],aD_Converter.y[2],$PRE.aD_Converter.y[3],aD_Converter.y[3],$PRE.aD_Converter.y[4],aD_Converter.y[4],$PRE.aD_Converter.y[5],aD_Converter.y[5],$PRE.aD_Converter.y[6],aD_Converter.y[6],$PRE.aD_Converter.y[7],aD_Converter.y[7],dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],$whenCondition3,$whenCondition1,$whenCondition2,$PRE.pulse.T0,pulse.T0,$PRE.pulse.np,pulse.np,pulse.sampling,dA_Converter.trig,$PRE.dA_Converter.vout,dA_Converter.vout) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 3 * 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.0001536/0.235, allocations: 251.6 kB / 417.2 MB, free: 17.73 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.23e-05/0.2351, allocations: 19.81 kB / 417.2 MB, free: 17.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.943e-05/0.2351, allocations: 22.66 kB / 417.2 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.2351, allocations: 0 / 417.2 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.359e-06/0.2351, allocations: 0 / 417.2 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.2351, allocations: 7.984 kB / 417.2 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.2362, allocations: 0.9473 MB / 418.2 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.2362, allocations: 0 / 418.2 MB, free: 16.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001026/0.2363, allocations: 23.98 kB / 418.2 MB, free: 16.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.2363, allocations: 0 / 418.2 MB, free: 16.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.2364, allocations: 11.94 kB / 418.2 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2364, allocations: 4 kB / 418.2 MB, free: 16.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2364, allocations: 7.984 kB / 418.2 MB, free: 16.61 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007402/0.2371, allocations: 0.6184 MB / 418.8 MB, free: 15.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.797e-05/0.2372, allocations: 100.8 kB / 418.9 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.198e-05/0.2372, allocations: 19.98 kB / 419 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.2374, allocations: 31.94 kB / 419 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.858e-05/0.2375, allocations: 27.95 kB / 419 MB, free: 15.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.298e-05/0.2376, allocations: 12 kB / 419 MB, free: 15.75 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.42e-05/0.2376, allocations: 131.4 kB / 419.1 MB, free: 15.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2376, allocations: 4 kB / 419.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002861/0.2379, allocations: 79.78 kB / 419.2 MB, free: 15.54 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($whenCondition3,$whenCondition1,$whenCondition2,aD_Converter.y[1],aD_Converter.y[2],aD_Converter.y[3],aD_Converter.y[4],aD_Converter.y[5],aD_Converter.y[6],aD_Converter.y[7],aD_Converter.z,pulse.T0,pulse.np,pulse.sampling,dA_Converter.trig,dA_Converter.x[1],dA_Converter.x[2],dA_Converter.x[3],dA_Converter.x[4],dA_Converter.x[5],dA_Converter.x[6],dA_Converter.x[7],dA_Converter.vout,dA_Converter.y) * Number of discrete states: 13 (pulse.np,aD_Converter.y[7],aD_Converter.y[6],aD_Converter.y[5],aD_Converter.y[4],aD_Converter.y[3],aD_Converter.y[2],aD_Converter.y[1],aD_Converter.z,$whenCondition1,dA_Converter.vout,dA_Converter.y,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 2 * 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.0001366/0.2381, allocations: 144.9 kB / 419.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006787/0.2388, allocations: 0.5548 MB / 419.9 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2388, allocations: 0 / 419.9 MB, free: 14.8 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003779/0.2392, allocations: 406.6 kB / 420.3 MB, free: 14.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006028/0.2398, allocations: 129.1 kB / 420.5 MB, free: 14.26 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007677/0.2406, allocations: 0.6382 MB / 421.1 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001665/0.2407, allocations: 0.7409 MB / 421.8 MB, free: 12.83 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.855e-05/0.2408, allocations: 23.42 kB / 421.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of SimCode: time 3.61e-07/0.2408, allocations: 0 / 421.9 MB, free: 12.8 MB / 298.7 MB Notification: Performance of Templates: time 0.003721/0.2445, allocations: 3.079 MB / 424.9 MB, free: 9.754 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches