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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001718/0.001718, allocations: 215 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.501/1.501, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 55.92 kB / 347.7 MB, free: 9.375 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2812, allocations: 49.14 MB / 396.8 MB, free: 9.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003931/0.2852, allocations: 2.226 MB / 399.1 MB, free: 7.898 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.2865, allocations: 0.6708 MB / 399.7 MB, free: 7.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.2866, allocations: 2.906 kB / 399.7 MB, free: 7.441 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001611/0.2868, allocations: 39.86 kB / 399.8 MB, free: 7.414 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001068/0.2869, allocations: 57.78 kB / 399.8 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000359/0.2873, allocations: 92.84 kB / 399.9 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003559/0.2876, allocations: 268.5 kB / 400.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002303/0.2879, allocations: 81.12 kB / 400.3 MB, free: 7.148 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002279/0.2881, allocations: 116.4 kB / 400.4 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001794/0.2883, allocations: 101.3 kB / 400.5 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.76e-05/0.2883, allocations: 23 kB / 400.5 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.837e-05/0.2884, allocations: 21.72 kB / 400.5 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.998e-05/0.2885, allocations: 56.36 kB / 400.6 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.2886, allocations: 101.6 kB / 400.7 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004471/0.289, allocations: 283.3 kB / 401 MB, free: 6.855 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.289, allocations: 0.7969 kB / 401 MB, free: 6.855 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.2891, allocations: 0 / 401 MB, free: 6.855 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.637e-05/0.2891, allocations: 0 / 401 MB, free: 6.855 MB / 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.001166/0.2902, allocations: 0.5958 MB / 401.6 MB, free: 6.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.2903, allocations: 13.27 kB / 401.6 MB, free: 6.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.498e-05/0.2904, allocations: 36.11 kB / 401.6 MB, free: 6.355 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003658/0.2907, allocations: 187.1 kB / 401.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.448e-05/0.2908, allocations: 75.75 kB / 401.9 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.822e-05/0.2909, allocations: 18.44 kB / 401.9 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006513/0.2915, allocations: 357.2 kB / 402.2 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.2916, allocations: 0 / 402.2 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.669e-05/0.2916, allocations: 6.344 kB / 402.2 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.175e-05/0.2916, allocations: 4.812 kB / 402.2 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005194/0.2921, allocations: 271.2 kB / 402.5 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001207/0.2933, allocations: 0.6347 MB / 403.1 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005907/0.2939, allocations: 355.4 kB / 403.5 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004498/0.2944, allocations: 254.1 kB / 403.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.2944, allocations: 7.031 kB / 403.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005702/0.2949, allocations: 409.4 kB / 404.1 MB, free: 4.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.643e-06/0.2949, allocations: 0 / 404.1 MB, free: 4.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.00127/0.2962, allocations: 0.741 MB / 404.9 MB, free: 4.363 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.952e-05/0.2963, allocations: 200.9 kB / 405.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.2964, allocations: 175.3 kB / 405.2 MB, free: 4.016 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.2965, allocations: 41.41 kB / 405.3 MB, free: 3.977 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.55e-05/0.2965, allocations: 132.8 kB / 405.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.867e-05/0.2966, allocations: 83.81 kB / 405.5 MB, free: 3.793 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.663e-05/0.2967, allocations: 69.31 kB / 405.6 MB, free: 3.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.954e-05/0.2968, allocations: 332 kB / 405.9 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002675/0.297, allocations: 206.1 kB / 406.1 MB, free: 3.293 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002985/0.2973, allocations: 285.6 kB / 406.4 MB, free: 3.074 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005144/0.2979, allocations: 420.3 kB / 406.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.2979, allocations: 1.094 kB / 406.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007288/0.2986, allocations: 0.5381 MB / 407.3 MB, free: 2.438 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.095e-05/0.2986, allocations: 91.64 kB / 407.4 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.2987, allocations: 6 kB / 407.4 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.2987, allocations: 6.469 kB / 407.4 MB, free: 2.336 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001926/0.2989, allocations: 41.09 kB / 407.5 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.2989, allocations: 3.562 kB / 407.5 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001929/0.2991, allocations: 38.88 kB / 407.5 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.448e-05/0.2991, allocations: 12.44 kB / 407.5 MB, free: 2.305 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.0002067/0.2993, allocations: 237.7 kB / 407.7 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.428e-05/0.2993, allocations: 24.77 kB / 407.8 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.956e-05/0.2994, allocations: 24.8 kB / 407.8 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.2994, allocations: 6.062 kB / 407.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.2994, allocations: 1.5 kB / 407.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.2994, allocations: 1.312 kB / 407.8 MB, free: 2.07 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001378/0.3008, allocations: 0.9018 MB / 408.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3008, allocations: 0.9375 kB / 408.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001116/0.3009, allocations: 20.09 kB / 408.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3009, allocations: 5.188 kB / 408.7 MB, free: 1.508 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.3009, allocations: 15.42 kB / 408.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3009, allocations: 2.656 kB / 408.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3009, allocations: 0 / 408.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009703/0.3019, allocations: 0.6881 MB / 409.4 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.032e-05/0.302, allocations: 19.11 kB / 409.5 MB, free: 1.074 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.37e-05/0.302, allocations: 21.19 kB / 409.5 MB, free: 1.066 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002148/0.3022, allocations: 21.41 kB / 409.5 MB, free: 1.062 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.731e-05/0.3023, allocations: 30.33 kB / 409.5 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.553e-05/0.3023, allocations: 14.3 kB / 409.5 MB, free: 1.047 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.845e-05/0.3024, allocations: 122.4 kB / 409.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3024, allocations: 0 / 409.7 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003626/0.3028, allocations: 78.45 kB / 409.7 MB, free: 0.9453 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.0001309/0.3029, allocations: 134.4 kB / 409.9 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009006/0.3038, allocations: 0.6577 MB / 410.5 MB, free: 404 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3038, allocations: 0 / 410.5 MB, free: 404 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000461/0.3043, allocations: 368.2 kB / 410.9 MB, free: 152 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007579/0.3051, allocations: 150.1 kB / 411 MB, free: 104 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00127/0.3063, allocations: 0.601 MB / 411.6 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001784/0.3065, allocations: 138.5 kB / 411.8 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001821/0.3067, allocations: 50.53 kB / 411.8 MB, free: 15.64 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.872e-05/0.3068, allocations: 20.09 kB / 411.8 MB, free: 15.64 MB / 334.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3068, allocations: 0 / 411.8 MB, free: 15.64 MB / 334.1 MB Notification: Performance of Templates: time 0.0107/0.3175, allocations: 4.702 MB / 416.5 MB, free: 13.21 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.93040494248271]