Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.AD_DA_conversion,fileNamePrefix="Modelica_4_0_0_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.0017/0.0017, allocations: 110.5 kB / 17.06 MB, free: 5.941 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.001946/0.001946, allocations: 200 kB / 18.01 MB, free: 5.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 43.94 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2383/0.2397, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003657/0.2434, allocations: 2.366 MB / 402.6 MB, free: 6.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.2447, allocations: 0.6699 MB / 403.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.939e-05/0.2449, allocations: 0 / 403.3 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.245, allocations: 35.64 kB / 403.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001183/0.2452, allocations: 55.48 kB / 403.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00033/0.2455, allocations: 91.77 kB / 403.5 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003382/0.2458, allocations: 259.1 kB / 403.7 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002437/0.2461, allocations: 123 kB / 403.8 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002077/0.2463, allocations: 115.6 kB / 403.9 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001775/0.2465, allocations: 111.5 kB / 404 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.246e-05/0.2466, allocations: 24 kB / 404.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.623e-05/0.2466, allocations: 20 kB / 404.1 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.39e-05/0.2467, allocations: 55.83 kB / 404.1 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001504/0.2469, allocations: 119.4 kB / 404.3 MB, free: 4.777 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003779/0.2472, allocations: 281.8 kB / 404.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.2473, allocations: 4 kB / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2473, allocations: 0 / 404.5 MB, free: 4.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.2473, allocations: 4 kB / 404.5 MB, free: 4.496 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.001152/0.2484, allocations: 0.6714 MB / 405.2 MB, free: 3.758 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.2485, allocations: 12.03 kB / 405.2 MB, free: 3.746 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.332e-05/0.2486, allocations: 54.73 kB / 405.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.504e-05/0.2486, allocations: 24.8 kB / 405.3 MB, free: 3.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.249, allocations: 245.4 kB / 405.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.018e-05/0.2491, allocations: 46.27 kB / 405.6 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.871e-05/0.2492, allocations: 24.38 kB / 405.6 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006266/0.2498, allocations: 260.1 kB / 405.9 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.2498, allocations: 0 / 405.9 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.793e-05/0.2498, allocations: 8 kB / 405.9 MB, free: 3.035 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.2499, allocations: 4 kB / 405.9 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005273/0.2504, allocations: 204.3 kB / 406.1 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.2518, allocations: 0.7601 MB / 406.8 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006672/0.2525, allocations: 304.8 kB / 407.1 MB, free: 1.703 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004509/0.2529, allocations: 228.9 kB / 407.4 MB, free: 1.477 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.274e-05/0.253, allocations: 4 kB / 407.4 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005598/0.2536, allocations: 312.9 kB / 407.7 MB, free: 1.137 MB / 318.1 MB Notification: Performance of pre-optimization done (n=31): time 8.616e-06/0.2536, allocations: 4 kB / 407.7 MB, free: 1.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.001241/0.2548, allocations: 0.5749 MB / 408.3 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002215/0.2551, allocations: 203.9 kB / 408.4 MB, free: 304 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001884/0.2553, allocations: 183.1 kB / 408.6 MB, free: 112 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.832e-05/0.2553, allocations: 37.7 kB / 408.7 MB, free: 68 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.2554, allocations: 132.9 kB / 408.8 MB, free: 15.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.154e-05/0.2555, allocations: 83.38 kB / 408.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.2556, allocations: 66.02 kB / 408.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002442/0.2559, allocations: 334.8 kB / 409.3 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002619/0.2562, allocations: 108.6 kB / 409.4 MB, free: 15.33 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003021/0.2565, allocations: 171.3 kB / 409.5 MB, free: 15.14 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006926/0.2572, allocations: 419.7 kB / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.2572, allocations: 0 / 410 MB, free: 14.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007809/0.258, allocations: 453.2 kB / 410.4 MB, free: 14.21 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.98e-05/0.2581, allocations: 101 kB / 410.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.2581, allocations: 0 / 410.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.2581, allocations: 4 kB / 410.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001924/0.2583, allocations: 39.91 kB / 410.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.2583, allocations: 7.984 kB / 410.5 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001879/0.2585, allocations: 35.97 kB / 410.6 MB, free: 14.01 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.2586, allocations: 12 kB / 410.6 MB, free: 14 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.0002603/0.2588, allocations: 240.8 kB / 410.8 MB, free: 13.74 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.258e-05/0.2589, allocations: 31.8 kB / 410.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.912e-05/0.2589, allocations: 18.66 kB / 410.9 MB, free: 13.7 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.259, allocations: 4 kB / 410.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.259, allocations: 4 kB / 410.9 MB, free: 13.69 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.259, allocations: 3.984 kB / 410.9 MB, free: 13.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.2606, allocations: 0.9317 MB / 411.8 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.2606, allocations: 12.02 kB / 411.8 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.2608, allocations: 19.98 kB / 411.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.2608, allocations: 0 / 411.8 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.717e-05/0.2608, allocations: 8 kB / 411.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.279e-06/0.2608, allocations: 4 kB / 411.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2608, allocations: 0 / 411.9 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.262, allocations: 0.6204 MB / 412.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.942e-05/0.262, allocations: 96.91 kB / 412.6 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.635e-05/0.2621, allocations: 23.98 kB / 412.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002169/0.2623, allocations: 19.98 kB / 412.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.566e-05/0.2624, allocations: 23.97 kB / 412.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.168e-05/0.2625, allocations: 15.94 kB / 412.7 MB, free: 11.79 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001177/0.2626, allocations: 131.2 kB / 412.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2626, allocations: 0 / 412.8 MB, free: 11.66 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003485/0.263, allocations: 71.94 kB / 412.9 MB, free: 11.59 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.001398/0.2644, allocations: 1.18 MB / 414 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009702/0.2653, allocations: 0.5449 MB / 414.6 MB, free: 9.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2654, allocations: 0 / 414.6 MB, free: 9.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005685/0.2659, allocations: 402.6 kB / 415 MB, free: 9.367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007408/0.2667, allocations: 136.2 kB / 415.1 MB, free: 9.238 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004129/0.2708, allocations: 2.932 MB / 418 MB, free: 6.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003987/0.2712, allocations: 0.7484 MB / 418.8 MB, free: 5.406 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001649/0.2714, allocations: 45.91 kB / 418.8 MB, free: 5.359 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001183/0.2715, allocations: 67.41 kB / 418.9 MB, free: 5.293 MB / 334.1 MB Notification: Performance of SimCode: time 4.5e-07/0.2716, allocations: 4 kB / 418.9 MB, free: 5.289 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/0.3032, allocations: 6.521 MB / 425.4 MB, free: 14.92 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.307/8.61, allocations: 11.8 kB / 425.4 MB, free: 14.91 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_AD_DA_conversion.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches