Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_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_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002258/0.002258, allocations: 101.5 kB / 18.39 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002568/0.002568, allocations: 187 kB / 19.33 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.731/1.731, allocations: 205.1 MB / 225.2 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 55.92 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09664/0.09799, allocations: 46.61 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004309/0.1023, allocations: 2.327 MB / 378.1 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001503/0.1039, allocations: 0.7212 MB / 378.9 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002068/0.1041, allocations: 7.938 kB / 378.9 MB, free: 1.488 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002036/0.1044, allocations: 23.72 kB / 378.9 MB, free: 1.465 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001909/0.1046, allocations: 55.5 kB / 379 MB, free: 1.41 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004568/0.105, allocations: 83.77 kB / 379 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004485/0.1055, allocations: 275 kB / 379.3 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002876/0.1058, allocations: 111 kB / 379.4 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002884/0.1061, allocations: 119.6 kB / 379.5 MB, free: 0.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002417/0.1063, allocations: 111.6 kB / 379.6 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.973e-05/0.1064, allocations: 24 kB / 379.7 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.6e-05/0.1065, allocations: 31.88 kB / 379.7 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.388e-05/0.1066, allocations: 47.84 kB / 379.7 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.1067, allocations: 123.4 kB / 379.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003732/0.1071, allocations: 283 kB / 380.1 MB, free: 228 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1071, allocations: 0 / 380.1 MB, free: 228 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1071, allocations: 0 / 380.1 MB, free: 228 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.262e-05/0.1072, allocations: 0 / 380.1 MB, free: 228 kB / 318.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.225/0.3321, allocations: 0.6631 MB / 380.8 MB, free: 12.96 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.142e-05/0.3322, allocations: 9 kB / 380.8 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001153/0.3323, allocations: 27.8 kB / 380.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005186/0.3329, allocations: 240.3 kB / 381.1 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.334e-05/0.333, allocations: 48.83 kB / 381.1 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.834e-05/0.333, allocations: 24.64 kB / 381.1 MB, free: 12.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007681/0.3338, allocations: 254.3 kB / 381.4 MB, free: 12.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.462e-05/0.3338, allocations: 3.938 kB / 381.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.377e-05/0.3339, allocations: 10.81 kB / 381.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.3339, allocations: 3.969 kB / 381.4 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005463/0.3344, allocations: 206 kB / 381.6 MB, free: 12.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001343/0.3358, allocations: 0.7455 MB / 382.4 MB, free: 12.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006377/0.3365, allocations: 304.9 kB / 382.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005268/0.337, allocations: 224.3 kB / 382.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.337, allocations: 2.469 kB / 382.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006017/0.3376, allocations: 319.2 kB / 383.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 5.861e-06/0.3377, allocations: 1.578 kB / 383.2 MB, free: 12.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001352/0.339, allocations: 0.5758 MB / 383.8 MB, free: 11.83 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001069/0.3391, allocations: 201.4 kB / 384 MB, free: 11.61 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.3393, allocations: 183.5 kB / 384.1 MB, free: 11.48 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.3393, allocations: 40.78 kB / 384.2 MB, free: 11.44 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.165e-05/0.3394, allocations: 133.4 kB / 384.3 MB, free: 11.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.951e-05/0.3395, allocations: 78.41 kB / 384.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.3396, allocations: 69.33 kB / 384.4 MB, free: 11.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.655e-05/0.3397, allocations: 339.6 kB / 384.8 MB, free: 10.9 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000261/0.34, allocations: 106.5 kB / 384.9 MB, free: 10.87 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002994/0.3403, allocations: 181.5 kB / 385.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005701/0.3409, allocations: 408.8 kB / 385.5 MB, free: 10.48 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3409, allocations: 0.9688 kB / 385.5 MB, free: 10.48 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007071/0.3416, allocations: 440.1 kB / 385.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.123e-05/0.3417, allocations: 96.84 kB / 386 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.3417, allocations: 6.422 kB / 386 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.72e-05/0.3417, allocations: 6.562 kB / 386 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002/0.3419, allocations: 40.81 kB / 386 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.342, allocations: 8.438 kB / 386 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.3422, allocations: 37.33 kB / 386.1 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.3422, allocations: 12.94 kB / 386.1 MB, free: 10.11 MB / 318.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.0002075/0.3424, allocations: 239.5 kB / 386.3 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.487e-05/0.3425, allocations: 25.11 kB / 386.4 MB, free: 9.895 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.241e-05/0.3425, allocations: 24.88 kB / 386.4 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.3426, allocations: 6.688 kB / 386.4 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.3426, allocations: 0 / 386.4 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.861e-06/0.3426, allocations: 2.047 kB / 386.4 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001537/0.3441, allocations: 0.9353 MB / 387.3 MB, free: 9.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.3441, allocations: 5.438 kB / 387.3 MB, free: 9.312 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001228/0.3443, allocations: 24.56 kB / 387.4 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.3443, allocations: 1.812 kB / 387.4 MB, free: 9.309 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.139e-05/0.3443, allocations: 9.906 kB / 387.4 MB, free: 9.305 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.3443, allocations: 8.859 kB / 387.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.3443, allocations: 1.656 kB / 387.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001114/0.3455, allocations: 0.6071 MB / 388 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.091e-05/0.3455, allocations: 100.8 kB / 388.1 MB, free: 8.863 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.804e-05/0.3456, allocations: 15.84 kB / 388.1 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002296/0.3459, allocations: 22.33 kB / 388.1 MB, free: 8.855 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.346, allocations: 20.83 kB / 388.1 MB, free: 8.852 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-05/0.346, allocations: 14.17 kB / 388.2 MB, free: 8.848 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001319/0.3462, allocations: 128.7 kB / 388.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3462, allocations: 0 / 388.3 MB, free: 8.758 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003875/0.3466, allocations: 79.53 kB / 388.4 MB, free: 8.742 MB / 318.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.0001947/0.3468, allocations: 132.1 kB / 388.5 MB, free: 8.641 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009349/0.3477, allocations: 0.5358 MB / 389 MB, free: 8.348 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3477, allocations: 0 / 389 MB, free: 8.348 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005354/0.3483, allocations: 399.2 kB / 389.4 MB, free: 8.113 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007669/0.349, allocations: 161.5 kB / 389.6 MB, free: 8.07 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.3502, allocations: 0.549 MB / 390.1 MB, free: 7.758 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002309/0.3504, allocations: 0.7507 MB / 390.9 MB, free: 7.051 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.74e-05/0.3505, allocations: 30.39 kB / 390.9 MB, free: 7.039 MB / 318.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3505, allocations: 0 / 390.9 MB, free: 7.039 MB / 318.1 MB Notification: Performance of Templates: time 0.006993/0.3575, allocations: 3.14 MB / 394 MB, free: 6.758 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat","/var/lib/jenkins1/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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches