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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_3_2_3_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 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 113.2 kB / 17.73 MB, free: 5.297 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.001203/0.001203, allocations: 188.2 kB / 18.67 MB, free: 4.363 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.541/1.541, allocations: 205.1 MB / 224.5 MB, free: 12.18 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.001409/0.001409, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0968/0.09822, allocations: 46.61 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.004713/0.103, allocations: 2.337 MB / 377 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00158/0.1046, allocations: 0.7056 MB / 377.7 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000245/0.1049, allocations: 4 kB / 377.7 MB, free: 2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001949/0.1052, allocations: 35.64 kB / 377.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001562/0.1053, allocations: 55.5 kB / 377.8 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004463/0.1058, allocations: 91.75 kB / 377.9 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004019/0.1062, allocations: 271 kB / 378.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002508/0.1065, allocations: 115 kB / 378.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003339/0.1068, allocations: 115.6 kB / 378.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002118/0.107, allocations: 115.5 kB / 378.5 MB, free: 1.215 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.839e-05/0.1071, allocations: 24 kB / 378.5 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.094e-05/0.1072, allocations: 24 kB / 378.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.454e-05/0.1073, allocations: 55.83 kB / 378.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001831/0.1075, allocations: 115.4 kB / 378.7 MB, free: 1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004522/0.1079, allocations: 282.8 kB / 379 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1079, allocations: 0 / 379 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1079, allocations: 0 / 379 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.108, allocations: 0 / 379 MB, free: 0.7227 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.1881/0.296, allocations: 0.6699 MB / 379.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.2961, allocations: 9.031 kB / 379.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001586/0.2963, allocations: 56.61 kB / 379.7 MB, free: 13.1 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.808e-05/0.2964, allocations: 31.33 kB / 379.7 MB, free: 13.1 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003839/0.2968, allocations: 243.9 kB / 380 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.724e-05/0.2969, allocations: 50.52 kB / 380 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.978e-05/0.2969, allocations: 21.62 kB / 380 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006641/0.2976, allocations: 261.6 kB / 380.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.2976, allocations: 0 / 380.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.412e-05/0.2976, allocations: 8.797 kB / 380.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-06/0.2977, allocations: 4.125 kB / 380.3 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004838/0.2981, allocations: 204.6 kB / 380.5 MB, free: 12.81 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.2995, allocations: 0.7566 MB / 381.3 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005665/0.3001, allocations: 300.1 kB / 381.6 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005307/0.3007, allocations: 229.4 kB / 381.8 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.3007, allocations: 5.344 kB / 381.8 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006314/0.3013, allocations: 314.2 kB / 382.1 MB, free: 12.24 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 1.673e-06/0.3013, allocations: 4.438 kB / 382.1 MB, free: 12.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001341/0.3027, allocations: 0.5697 MB / 382.7 MB, free: 12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.948e-05/0.3028, allocations: 207.2 kB / 382.9 MB, free: 11.78 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.303, allocations: 179.5 kB / 383 MB, free: 11.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/0.303, allocations: 39.7 kB / 383.1 MB, free: 11.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.912e-05/0.3031, allocations: 134.3 kB / 383.2 MB, free: 11.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.3032, allocations: 82.17 kB / 383.3 MB, free: 11.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.679e-05/0.3033, allocations: 68.5 kB / 383.4 MB, free: 11.4 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.816e-05/0.3034, allocations: 335.8 kB / 383.7 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002602/0.3037, allocations: 108 kB / 383.8 MB, free: 11.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002818/0.3039, allocations: 178.5 kB / 384 MB, free: 10.95 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000561/0.3045, allocations: 409 kB / 384.4 MB, free: 10.66 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.739e-06/0.3045, allocations: 5.219 kB / 384.4 MB, free: 10.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007094/0.3052, allocations: 447.6 kB / 384.8 MB, free: 10.41 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.681e-05/0.3053, allocations: 97.89 kB / 384.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.3053, allocations: 1.375 kB / 384.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.462e-05/0.3054, allocations: 6.812 kB / 384.9 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002044/0.3056, allocations: 37.22 kB / 385 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.3056, allocations: 3.5 kB / 385 MB, free: 10.31 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.3058, allocations: 41.38 kB / 385 MB, free: 10.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.3058, allocations: 13.12 kB / 385 MB, free: 10.29 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.0001933/0.306, allocations: 244.1 kB / 385.2 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.3061, allocations: 24.64 kB / 385.3 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.455e-05/0.3062, allocations: 31.8 kB / 385.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.3062, allocations: 1.781 kB / 385.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.3062, allocations: 2.562 kB / 385.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3062, allocations: 5.641 kB / 385.3 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001388/0.3076, allocations: 0.9287 MB / 386.2 MB, free: 9.484 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.3076, allocations: 6.094 kB / 386.2 MB, free: 9.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001073/0.3078, allocations: 20.14 kB / 386.3 MB, free: 9.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.3078, allocations: 2.094 kB / 386.3 MB, free: 9.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.733e-05/0.3078, allocations: 10.22 kB / 386.3 MB, free: 9.477 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.3078, allocations: 6.219 kB / 386.3 MB, free: 9.473 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3078, allocations: 1.469 kB / 386.3 MB, free: 9.473 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009409/0.3088, allocations: 0.6112 MB / 386.9 MB, free: 9.141 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.443e-05/0.3088, allocations: 97.2 kB / 387 MB, free: 9.035 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.962e-05/0.3089, allocations: 15.31 kB / 387 MB, free: 9.031 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.3091, allocations: 25.44 kB / 387 MB, free: 9.027 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.72e-05/0.3092, allocations: 25.28 kB / 387.1 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.627e-05/0.3093, allocations: 14.23 kB / 387.1 MB, free: 9.016 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.668e-05/0.3094, allocations: 129.4 kB / 387.2 MB, free: 8.926 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3094, allocations: 0 / 387.2 MB, free: 8.926 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003791/0.3098, allocations: 77.39 kB / 387.3 MB, free: 8.91 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.001131/0.3109, allocations: 1.182 MB / 388.5 MB, free: 8.039 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008354/0.3118, allocations: 0.5464 MB / 389 MB, free: 7.734 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.3118, allocations: 1.094 kB / 389 MB, free: 7.734 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005189/0.3123, allocations: 398.4 kB / 389.4 MB, free: 7.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000769/0.3131, allocations: 150.5 kB / 389.5 MB, free: 7.465 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003478/0.3166, allocations: 2.92 MB / 392.5 MB, free: 5.543 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.3168, allocations: 0.7478 MB / 393.2 MB, free: 4.836 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001762/0.317, allocations: 47.78 kB / 393.3 MB, free: 4.836 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001031/0.3171, allocations: 66.34 kB / 393.3 MB, free: 4.793 MB / 318.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3171, allocations: 5.203 kB / 393.3 MB, free: 4.789 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07136/0.3885, allocations: 6.52 MB / 399.8 MB, free: 2.996 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.305/8.694, allocations: 10.84 kB / 399.9 MB, free: 2.988 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > 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.csv","/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