Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001941/0.001941, allocations: 103.6 kB / 21.18 MB, free: 0.6445 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002206/0.002206, allocations: 211.4 kB / 24.48 MB, free: 3.934 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 230.5 MB / 258.1 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5601,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion") translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5601,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 67.89 kB / 379 MB, free: 2.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.2216, allocations: 53.41 MB / 432.4 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003713/0.2253, allocations: 2.271 MB / 434.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.2266, allocations: 0.7012 MB / 435.4 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.2267, allocations: 7.938 kB / 435.4 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.2269, allocations: 27.72 kB / 435.4 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.227, allocations: 55.48 kB / 435.5 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003777/0.2274, allocations: 119.6 kB / 435.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003413/0.2277, allocations: 255.1 kB / 435.8 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001988/0.2279, allocations: 79.25 kB / 435.9 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002543/0.2282, allocations: 123.6 kB / 436 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001689/0.2283, allocations: 103.5 kB / 436.1 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.63e-05/0.2284, allocations: 20 kB / 436.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.221e-05/0.2285, allocations: 24 kB / 436.2 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.202e-05/0.2285, allocations: 51.84 kB / 436.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.2287, allocations: 119.4 kB / 436.3 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000369/0.229, allocations: 285.9 kB / 436.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.229, allocations: 0 / 436.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.229, allocations: 0 / 436.6 MB, free: 2.312 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.229, allocations: 0 / 436.6 MB, free: 2.312 MB / 334.1 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.00104/0.2301, allocations: 0.5961 MB / 437.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.2301, allocations: 19.98 kB / 437.2 MB, free: 1.648 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.2303, allocations: 40.73 kB / 437.3 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000349/0.2306, allocations: 179 kB / 437.4 MB, free: 1.41 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001061/0.2307, allocations: 83.73 kB / 437.5 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.94e-05/0.2308, allocations: 16.38 kB / 437.5 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000641/0.2314, allocations: 353.4 kB / 437.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.2314, allocations: 0 / 437.9 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.915e-05/0.2315, allocations: 16 kB / 437.9 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.053e-06/0.2315, allocations: 4 kB / 437.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000562/0.232, allocations: 275.6 kB / 438.2 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00129/0.2333, allocations: 0.6313 MB / 438.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006479/0.234, allocations: 342.1 kB / 439.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004561/0.2344, allocations: 252.4 kB / 439.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.118e-05/0.2344, allocations: 4 kB / 439.4 MB, free: 15.33 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005998/0.235, allocations: 421.4 kB / 439.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.473e-06/0.235, allocations: 0 / 439.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.001336/0.2364, allocations: 0.7308 MB / 440.5 MB, free: 14.1 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.2365, allocations: 203.9 kB / 440.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/0.2367, allocations: 186.4 kB / 440.9 MB, free: 13.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.471e-05/0.2368, allocations: 37.69 kB / 441 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001016/0.2369, allocations: 136.9 kB / 441.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.352e-05/0.2369, allocations: 83.36 kB / 441.2 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/0.2371, allocations: 70.02 kB / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.2372, allocations: 334.8 kB / 441.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003235/0.2375, allocations: 201.7 kB / 441.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003718/0.2379, allocations: 290.1 kB / 442 MB, free: 12.44 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005944/0.2385, allocations: 417.4 kB / 442.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.2385, allocations: 0 / 442.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0008024/0.2393, allocations: 0.534 MB / 443 MB, free: 11.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.253e-05/0.2394, allocations: 93.09 kB / 443.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.2394, allocations: 4 kB / 443.1 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.2394, allocations: 7.938 kB / 443.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.2396, allocations: 39.91 kB / 443.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.2396, allocations: 8.094 kB / 443.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001814/0.2398, allocations: 43.75 kB / 443.2 MB, free: 11.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.314e-05/0.2398, allocations: 12 kB / 443.2 MB, free: 11.19 MB / 350.1 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 (dA_Converter.y,$PRE.dA_Converter.y,aD_Converter.z,$PRE.aD_Converter.z,dA_Converter.x[7],dA_Converter.x[6],dA_Converter.x[5],dA_Converter.x[4],dA_Converter.x[3],dA_Converter.x[2],dA_Converter.x[1],aD_Converter.y[7],$PRE.aD_Converter.y[7],aD_Converter.y[6],$PRE.aD_Converter.y[6],aD_Converter.y[5],$PRE.aD_Converter.y[5],aD_Converter.y[4],$PRE.aD_Converter.y[4],aD_Converter.y[3],$PRE.aD_Converter.y[3],aD_Converter.y[2],$PRE.aD_Converter.y[2],aD_Converter.y[1],$PRE.aD_Converter.y[1],dA_Converter.trig,pulse.sampling,pulse.np,$PRE.pulse.np,pulse.T0,$PRE.pulse.T0,$whenCondition2,$whenCondition1,$whenCondition3,dA_Converter.vout,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002443/0.2401, allocations: 243.6 kB / 443.4 MB, free: 10.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.395e-05/0.2401, allocations: 23.86 kB / 443.5 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.18e-05/0.2402, allocations: 22.66 kB / 443.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.2402, allocations: 7.938 kB / 443.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.2402, allocations: 0 / 443.5 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.2402, allocations: 7.984 kB / 443.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001468/0.2416, allocations: 0.8946 MB / 444.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.2416, allocations: 4.219 kB / 444.4 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.2417, allocations: 19.98 kB / 444.4 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.2418, allocations: 15.81 kB / 444.4 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/0.2418, allocations: 8 kB / 444.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.2418, allocations: 3.984 kB / 444.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2418, allocations: 0 / 444.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.2428, allocations: 0.6824 MB / 445.1 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.869e-05/0.2429, allocations: 19.84 kB / 445.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.835e-05/0.2429, allocations: 15.98 kB / 445.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002122/0.2431, allocations: 19.98 kB / 445.2 MB, free: 9.078 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.014e-05/0.2432, allocations: 27.86 kB / 445.2 MB, free: 9.051 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.546e-05/0.2432, allocations: 15.98 kB / 445.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001211/0.2434, allocations: 132.3 kB / 445.3 MB, free: 8.906 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2434, allocations: 0 / 445.3 MB, free: 8.906 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003357/0.2437, allocations: 75.94 kB / 445.4 MB, free: 8.832 MB / 350.1 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 (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.0001623/0.2439, allocations: 137.2 kB / 445.6 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000951/0.2448, allocations: 0.6624 MB / 446.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.2448, allocations: 0 / 446.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005201/0.2453, allocations: 366 kB / 446.6 MB, free: 7.566 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006812/0.246, allocations: 143.8 kB / 446.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001075/0.2471, allocations: 0.6327 MB / 447.3 MB, free: 6.758 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001426/0.2472, allocations: 133.6 kB / 447.5 MB, free: 6.605 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.179e-05/0.2473, allocations: 35.42 kB / 447.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.2473, allocations: 0 / 447.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of Templates: time 0.005504/0.2528, allocations: 3.176 MB / 450.7 MB, free: 3.418 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.984079888090491]