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) 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) 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001631/0.001631, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002102/0.002102, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.4 MB / 246.9 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.91 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2872/0.2885, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003837/0.2923, allocations: 2.375 MB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001585/0.294, allocations: 0.7439 MB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002338/0.2942, allocations: 4 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000213/0.2945, allocations: 35.66 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001915/0.2947, allocations: 55.48 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004948/0.2952, allocations: 99.75 kB / 412.1 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003639/0.2956, allocations: 263 kB / 412.3 MB, free: 13.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002413/0.2958, allocations: 119 kB / 412.4 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002874/0.2961, allocations: 123.5 kB / 412.6 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001925/0.2963, allocations: 107.6 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.611e-05/0.2964, allocations: 24 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.118e-05/0.2965, allocations: 28 kB / 412.7 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.483e-05/0.2965, allocations: 59.77 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001351/0.2967, allocations: 119.5 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003518/0.297, allocations: 292.6 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2971, allocations: 0 / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2971, allocations: 0 / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.2971, allocations: 0 / 413.2 MB, free: 13.09 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.001099/0.2982, allocations: 0.6678 MB / 413.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.2982, allocations: 8.031 kB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.299e-05/0.2983, allocations: 62.66 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.2985, allocations: 32.66 kB / 413.9 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003928/0.2989, allocations: 259.8 kB / 414.2 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.408e-05/0.299, allocations: 50.03 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.102e-05/0.2991, allocations: 24.38 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005927/0.2997, allocations: 252.1 kB / 414.5 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.2997, allocations: 3.984 kB / 414.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.251e-05/0.2997, allocations: 11.98 kB / 414.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.2997, allocations: 4 kB / 414.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004794/0.3002, allocations: 204.3 kB / 414.7 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001364/0.3016, allocations: 0.7524 MB / 415.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000579/0.3022, allocations: 299.2 kB / 415.8 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004317/0.3027, allocations: 224 kB / 416 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.942e-05/0.3027, allocations: 3.984 kB / 416 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005396/0.3032, allocations: 316.3 kB / 416.3 MB, free: 9.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 2.525e-06/0.3032, allocations: 0 / 416.3 MB, free: 9.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.00115/0.3044, allocations: 0.5707 MB / 416.9 MB, free: 9.125 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.3045, allocations: 203.9 kB / 417.1 MB, free: 8.883 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.3047, allocations: 192.2 kB / 417.3 MB, free: 8.684 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.3048, allocations: 37.69 kB / 417.3 MB, free: 8.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.375e-05/0.3049, allocations: 132.7 kB / 417.4 MB, free: 8.504 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.462e-05/0.3049, allocations: 79 kB / 417.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001025/0.3051, allocations: 77.95 kB / 417.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.3052, allocations: 330.8 kB / 417.9 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002346/0.3054, allocations: 104.6 kB / 418 MB, free: 7.906 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.3057, allocations: 179.3 kB / 418.2 MB, free: 7.711 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000517/0.3062, allocations: 421.3 kB / 418.6 MB, free: 7.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.3062, allocations: 0 / 418.6 MB, free: 7.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006863/0.3069, allocations: 439.3 kB / 419 MB, free: 6.797 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.144e-05/0.307, allocations: 97.03 kB / 419.1 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.307, allocations: 0 / 419.1 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.307, allocations: 8.094 kB / 419.1 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.3073, allocations: 39.92 kB / 419.2 MB, free: 6.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.615e-05/0.3073, allocations: 11.97 kB / 419.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001974/0.3075, allocations: 31.69 kB / 419.2 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.443e-05/0.3075, allocations: 15.98 kB / 419.2 MB, free: 6.578 MB / 334.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.0002317/0.3078, allocations: 235.8 kB / 419.5 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.967e-05/0.3078, allocations: 23.75 kB / 419.5 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.9e-05/0.3079, allocations: 30.62 kB / 419.5 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.3079, allocations: 4 kB / 419.5 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3079, allocations: 0 / 419.5 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.3079, allocations: 0 / 419.5 MB, free: 6.273 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001397/0.3093, allocations: 0.9356 MB / 420.5 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.3093, allocations: 4 kB / 420.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.3094, allocations: 23.98 kB / 420.5 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.3095, allocations: 0 / 420.5 MB, free: 5.238 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.355e-05/0.3095, allocations: 7.984 kB / 420.5 MB, free: 5.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.3095, allocations: 4 kB / 420.5 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3095, allocations: 4.031 kB / 420.5 MB, free: 5.223 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008883/0.3104, allocations: 0.6052 MB / 421.1 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.275e-05/0.3105, allocations: 112.7 kB / 421.2 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.245e-05/0.3106, allocations: 19.94 kB / 421.2 MB, free: 4.438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002137/0.3108, allocations: 19.97 kB / 421.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.873e-05/0.3109, allocations: 23.97 kB / 421.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.856e-05/0.3109, allocations: 11.94 kB / 421.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001082/0.311, allocations: 131.2 kB / 421.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.311, allocations: 0 / 421.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003725/0.3114, allocations: 75.94 kB / 421.5 MB, free: 4.18 MB / 334.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.001264/0.3127, allocations: 1.191 MB / 422.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008464/0.3135, allocations: 0.5442 MB / 423.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.3136, allocations: 4 kB / 423.2 MB, free: 2.367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004913/0.3141, allocations: 402.5 kB / 423.6 MB, free: 1.949 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007096/0.3148, allocations: 136.6 kB / 423.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003942/0.3187, allocations: 2.933 MB / 426.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003137/0.3191, allocations: 0.7444 MB / 427.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001835/0.3193, allocations: 57.88 kB / 427.5 MB, free: 13.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.3194, allocations: 71.78 kB / 427.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.3194, allocations: 0 / 427.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02671/0.3462, allocations: 6.665 MB / 434.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.722/8.068, allocations: 7.297 kB / 434.2 MB, free: 7.332 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) 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.0.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) Reference file matches