Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.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) 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.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_3.2.3_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_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009766/0.0009766, allocations: 179.8 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.478/1.478, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.0007202/0.00072, allocations: 94.36 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003444/0.0003446, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2302, allocations: 47.58 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.002154/0.2324, allocations: 1.965 MB / 376.5 MB, free: 43.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001105/0.2335, allocations: 0.6668 MB / 377.2 MB, free: 43.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001131/0.2337, allocations: 6.188 kB / 377.2 MB, free: 43.35 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.2338, allocations: 18.28 kB / 377.2 MB, free: 43.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001044/0.2339, allocations: 50.23 kB / 377.3 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.2342, allocations: 69.78 kB / 377.3 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002645/0.2345, allocations: 229.8 kB / 377.5 MB, free: 43.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002416/0.2347, allocations: 87.25 kB / 377.6 MB, free: 43.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001929/0.2349, allocations: 99.62 kB / 377.7 MB, free: 43 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000142/0.2351, allocations: 91.02 kB / 377.8 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.015e-05/0.2351, allocations: 9.562 kB / 377.8 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.719e-05/0.2352, allocations: 10.19 kB / 377.8 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.821e-05/0.2352, allocations: 42.73 kB / 377.9 MB, free: 42.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.921e-05/0.2353, allocations: 69.89 kB / 377.9 MB, free: 42.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002049/0.2355, allocations: 198.4 kB / 378.1 MB, free: 42.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.2355, allocations: 3.984 kB / 378.1 MB, free: 42.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.2355, allocations: 1 kB / 378.1 MB, free: 42.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.2355, allocations: 0 / 378.1 MB, free: 42.71 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.0009053/0.2365, allocations: 0.6344 MB / 378.8 MB, free: 42.11 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.17e-05/0.2365, allocations: 9.844 kB / 378.8 MB, free: 42.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.308e-05/0.2366, allocations: 30.09 kB / 378.8 MB, free: 42.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.2369, allocations: 237.8 kB / 379 MB, free: 41.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.775e-05/0.2369, allocations: 56.58 kB / 379.1 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.237, allocations: 17.88 kB / 379.1 MB, free: 41.79 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006399/0.2376, allocations: 260.1 kB / 379.4 MB, free: 41.65 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.2377, allocations: 5.531 kB / 379.4 MB, free: 41.64 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.874e-05/0.2377, allocations: 9.516 kB / 379.4 MB, free: 41.64 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.2377, allocations: 5 kB / 379.4 MB, free: 41.64 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005145/0.2382, allocations: 214.8 kB / 379.6 MB, free: 41.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.2395, allocations: 0.7681 MB / 380.4 MB, free: 40.91 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005855/0.2401, allocations: 309.8 kB / 380.7 MB, free: 40.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004306/0.2405, allocations: 240.8 kB / 380.9 MB, free: 40.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.2405, allocations: 2.406 kB / 380.9 MB, free: 40.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000499/0.241, allocations: 323 kB / 381.2 MB, free: 40.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.555e-06/0.2411, allocations: 1.312 kB / 381.2 MB, free: 40.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.00122/0.2423, allocations: 0.593 MB / 381.8 MB, free: 40.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.918e-05/0.2424, allocations: 199.7 kB / 382 MB, free: 39.88 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.2426, allocations: 182.2 kB / 382.2 MB, free: 39.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.056e-05/0.2426, allocations: 43.28 kB / 382.2 MB, free: 39.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.459e-05/0.2427, allocations: 130.2 kB / 382.4 MB, free: 39.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.728e-05/0.2427, allocations: 83.61 kB / 382.4 MB, free: 39.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.381e-05/0.2427, allocations: 6.5 kB / 382.5 MB, free: 39.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.04e-05/0.2428, allocations: 337 kB / 382.8 MB, free: 39.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002412/0.2431, allocations: 117.3 kB / 382.9 MB, free: 39.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002943/0.2434, allocations: 172.1 kB / 383.1 MB, free: 38.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002971/0.2437, allocations: 216.8 kB / 383.3 MB, free: 38.84 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.2437, allocations: 3.938 kB / 383.3 MB, free: 38.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006811/0.2444, allocations: 460.7 kB / 383.7 MB, free: 38.56 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.248e-05/0.2445, allocations: 92.31 kB / 383.8 MB, free: 38.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.2445, allocations: 2.156 kB / 383.8 MB, free: 38.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.2445, allocations: 3.156 kB / 383.8 MB, free: 38.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002046/0.2447, allocations: 40.52 kB / 383.9 MB, free: 38.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.2447, allocations: 6.406 kB / 383.9 MB, free: 38.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002099/0.2449, allocations: 41.73 kB / 383.9 MB, free: 38.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.245, allocations: 21.67 kB / 383.9 MB, free: 38.41 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.0001806/0.2452, allocations: 237.8 kB / 384.2 MB, free: 38.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.088e-05/0.2452, allocations: 25.75 kB / 384.2 MB, free: 38.18 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.381e-05/0.2453, allocations: 26.02 kB / 384.2 MB, free: 38.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.2453, allocations: 2.062 kB / 384.2 MB, free: 38.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.2453, allocations: 0 / 384.2 MB, free: 38.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.2453, allocations: 1.094 kB / 384.2 MB, free: 38.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001332/0.2467, allocations: 0.949 MB / 385.2 MB, free: 37.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.2467, allocations: 1.156 kB / 385.2 MB, free: 37.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001164/0.2468, allocations: 24.89 kB / 385.2 MB, free: 37.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.2468, allocations: 1.938 kB / 385.2 MB, free: 37.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.819e-05/0.2469, allocations: 12.25 kB / 385.2 MB, free: 37.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.2469, allocations: 1.656 kB / 385.2 MB, free: 37.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2469, allocations: 1.156 kB / 385.2 MB, free: 37.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008713/0.2477, allocations: 0.6308 MB / 385.8 MB, free: 37.03 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.971e-05/0.2478, allocations: 108.8 kB / 385.9 MB, free: 36.9 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.447e-05/0.2479, allocations: 15.95 kB / 386 MB, free: 36.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002163/0.2481, allocations: 19.98 kB / 386 MB, free: 36.87 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.684e-05/0.2482, allocations: 31.95 kB / 386 MB, free: 36.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.296e-05/0.2482, allocations: 8 kB / 386 MB, free: 36.83 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.295e-05/0.2483, allocations: 135.2 kB / 386.2 MB, free: 36.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2483, allocations: 0 / 386.2 MB, free: 36.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003205/0.2486, allocations: 75.91 kB / 386.2 MB, free: 36.62 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.0001872/0.2488, allocations: 140.6 kB / 386.4 MB, free: 36.47 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007789/0.2496, allocations: 0.5568 MB / 386.9 MB, free: 35.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.2496, allocations: 192 / 386.9 MB, free: 35.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004163/0.25, allocations: 410 kB / 387.3 MB, free: 35.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006949/0.2507, allocations: 136 kB / 387.5 MB, free: 35.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009757/0.2517, allocations: 0.6273 MB / 388.1 MB, free: 34.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000202/0.2519, allocations: 0.7448 MB / 388.8 MB, free: 33.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.801e-05/0.252, allocations: 19.44 kB / 388.8 MB, free: 33.88 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.252, allocations: 0 / 388.8 MB, free: 33.88 MB / 298.7 MB Notification: Performance of Templates: time 0.004341/0.2564, allocations: 3.077 MB / 391.9 MB, free: 30.81 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/AD_DA_conversion/AD_DA_conversion.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches