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.001648/0.001648, allocations: 114.5 kB / 17.73 MB, free: 5.312 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.001433/0.001433, allocations: 187 kB / 18.66 MB, free: 4.387 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.605/1.605, allocations: 205.1 MB / 224.6 MB, free: 12.27 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.001687/0.001687, allocations: 55.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1047, allocations: 46.61 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003976/0.1087, allocations: 2.334 MB / 377 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.1101, allocations: 0.7134 MB / 377.7 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.1103, allocations: 7.938 kB / 377.7 MB, free: 1.988 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001557/0.1105, allocations: 23.72 kB / 377.7 MB, free: 1.965 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.1106, allocations: 59.48 kB / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003381/0.1109, allocations: 87.77 kB / 377.9 MB, free: 1.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003689/0.1113, allocations: 271 kB / 378.1 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002484/0.1116, allocations: 115 kB / 378.3 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002144/0.1118, allocations: 115.6 kB / 378.4 MB, free: 1.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/0.112, allocations: 119.5 kB / 378.5 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.652e-05/0.1121, allocations: 24 kB / 378.5 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.055e-05/0.1121, allocations: 20 kB / 378.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.673e-05/0.1122, allocations: 47.84 kB / 378.6 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.1124, allocations: 127.3 kB / 378.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003961/0.1128, allocations: 270.9 kB / 379 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1128, allocations: 4 kB / 379 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1128, allocations: 0 / 379 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.1128, allocations: 4 kB / 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.1994/0.3122, allocations: 0.6607 MB / 379.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.389e-05/0.3123, allocations: 10.38 kB / 379.6 MB, free: 13.07 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002034/0.3125, allocations: 58.03 kB / 379.7 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001093/0.3127, allocations: 35.94 kB / 379.7 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004915/0.3132, allocations: 246.2 kB / 380 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.477e-05/0.3132, allocations: 50.28 kB / 380 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.999e-05/0.3133, allocations: 21.28 kB / 380 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006669/0.314, allocations: 257.7 kB / 380.3 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.314, allocations: 1.375 kB / 380.3 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.626e-05/0.314, allocations: 9.469 kB / 380.3 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.548e-06/0.314, allocations: 4.781 kB / 380.3 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005011/0.3146, allocations: 203.7 kB / 380.5 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00137/0.3159, allocations: 0.7562 MB / 381.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006444/0.3166, allocations: 300 kB / 381.6 MB, free: 12.35 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000506/0.3171, allocations: 227.6 kB / 381.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.3171, allocations: 1.547 kB / 381.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005813/0.3177, allocations: 319 kB / 382.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 2.084e-06/0.3177, allocations: 0 / 382.1 MB, free: 12.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001294/0.319, allocations: 0.5764 MB / 382.7 MB, free: 11.95 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.029e-05/0.3191, allocations: 201.7 kB / 382.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000166/0.3193, allocations: 182.8 kB / 383 MB, free: 11.6 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.3193, allocations: 43.8 kB / 383.1 MB, free: 11.56 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.815e-05/0.3194, allocations: 136.1 kB / 383.2 MB, free: 11.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.313e-05/0.3195, allocations: 80.69 kB / 383.3 MB, free: 11.4 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.417e-05/0.3196, allocations: 68.2 kB / 383.4 MB, free: 11.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.914e-05/0.3197, allocations: 336.4 kB / 383.7 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002421/0.3199, allocations: 105.9 kB / 383.8 MB, free: 11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002665/0.3202, allocations: 177.4 kB / 384 MB, free: 10.9 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005206/0.3207, allocations: 415.5 kB / 384.4 MB, free: 10.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3208, allocations: 9 kB / 384.4 MB, free: 10.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006518/0.3214, allocations: 439.8 kB / 384.8 MB, free: 10.38 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.686e-05/0.3215, allocations: 97.94 kB / 384.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3215, allocations: 1.188 kB / 384.9 MB, free: 10.28 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/0.3215, allocations: 7.125 kB / 384.9 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000253/0.3218, allocations: 41.08 kB / 385 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.074e-05/0.3218, allocations: 3.781 kB / 385 MB, free: 10.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.3221, allocations: 41.39 kB / 385 MB, free: 10.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.3221, allocations: 13.84 kB / 385 MB, free: 10.24 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.0002579/0.3224, allocations: 237.6 kB / 385.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.918e-05/0.3224, allocations: 35.09 kB / 385.3 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.339e-05/0.3225, allocations: 27.06 kB / 385.3 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3225, allocations: 3.594 kB / 385.3 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.3225, allocations: 0.875 kB / 385.3 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.3225, allocations: 0.9375 kB / 385.3 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/0.3239, allocations: 0.929 MB / 386.2 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3239, allocations: 1.031 kB / 386.2 MB, free: 9.441 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.3241, allocations: 25.44 kB / 386.3 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.3241, allocations: 1.031 kB / 386.3 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.881e-05/0.3241, allocations: 13.77 kB / 386.3 MB, free: 9.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.3241, allocations: 5.875 kB / 386.3 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3241, allocations: 0.75 kB / 386.3 MB, free: 9.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009973/0.3251, allocations: 0.6084 MB / 386.9 MB, free: 9.102 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.637e-05/0.3252, allocations: 100.1 kB / 387 MB, free: 8.992 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.067e-05/0.3253, allocations: 21.17 kB / 387 MB, free: 8.984 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.3255, allocations: 21.48 kB / 387 MB, free: 8.98 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.867e-05/0.3256, allocations: 20.09 kB / 387.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.64e-05/0.3256, allocations: 10.06 kB / 387.1 MB, free: 8.977 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001085/0.3257, allocations: 130 kB / 387.2 MB, free: 8.887 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.3257, allocations: 0 / 387.2 MB, free: 8.887 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003734/0.3261, allocations: 82.39 kB / 387.3 MB, free: 8.867 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.001231/0.3274, allocations: 1.188 MB / 388.5 MB, free: 7.992 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008593/0.3282, allocations: 0.5386 MB / 389 MB, free: 7.695 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3282, allocations: 4.781 kB / 389 MB, free: 7.691 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004989/0.3287, allocations: 403.1 kB / 389.4 MB, free: 7.453 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007488/0.3295, allocations: 138.5 kB / 389.5 MB, free: 7.426 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003759/0.3333, allocations: 2.92 MB / 392.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002193/0.3335, allocations: 0.7435 MB / 393.2 MB, free: 4.801 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002194/0.3338, allocations: 53.16 kB / 393.2 MB, free: 4.797 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.3339, allocations: 67.14 kB / 393.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3339, allocations: 0 / 393.3 MB, free: 4.754 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03322/0.3671, allocations: 6.52 MB / 399.8 MB, free: 2.969 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.427/8.794, allocations: 17.94 kB / 399.9 MB, free: 2.953 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