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.00167/0.00167, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002171/0.002172, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.249/0.2509, allocations: 50.54 MB / 408.8 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003857/0.2548, allocations: 2.386 MB / 411.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.2563, allocations: 0.74 MB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.842e-05/0.2564, allocations: 3.938 kB / 411.9 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000156/0.2566, allocations: 35.7 kB / 411.9 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001253/0.2567, allocations: 51.5 kB / 412 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003702/0.2571, allocations: 107.7 kB / 412.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000323/0.2574, allocations: 271 kB / 412.3 MB, free: 13.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002462/0.2577, allocations: 111 kB / 412.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.2579, allocations: 119.6 kB / 412.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.2581, allocations: 111.6 kB / 412.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.392e-05/0.2582, allocations: 24 kB / 412.7 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.131e-05/0.2582, allocations: 24 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.324e-05/0.2583, allocations: 63.75 kB / 412.8 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.2585, allocations: 119.4 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003754/0.2589, allocations: 285.8 kB / 413.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2589, allocations: 0 / 413.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2589, allocations: 0 / 413.2 MB, free: 13.13 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.604e-06/0.2589, allocations: 0 / 413.2 MB, free: 13.13 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.001131/0.26, allocations: 0.6716 MB / 413.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.2601, allocations: 15.97 kB / 413.9 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.343e-05/0.2602, allocations: 54.73 kB / 413.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001728/0.2603, allocations: 40.73 kB / 414 MB, free: 12.28 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003682/0.2607, allocations: 251.9 kB / 414.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.122e-05/0.2608, allocations: 54.05 kB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.988e-05/0.2608, allocations: 20.36 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00057/0.2614, allocations: 256.1 kB / 414.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.2614, allocations: 0 / 414.5 MB, free: 11.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.752e-05/0.2615, allocations: 7.938 kB / 414.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.2615, allocations: 8 kB / 414.6 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004945/0.262, allocations: 208.2 kB / 414.8 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.2633, allocations: 0.7526 MB / 415.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006089/0.264, allocations: 306.6 kB / 415.8 MB, free: 10.31 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004253/0.2644, allocations: 221 kB / 416 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.2644, allocations: 8 kB / 416 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005222/0.265, allocations: 316.2 kB / 416.3 MB, free: 9.746 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.573e-06/0.265, allocations: 4 kB / 416.3 MB, free: 9.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.001197/0.2662, allocations: 0.5711 MB / 416.9 MB, free: 9.152 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001463/0.2663, allocations: 199.9 kB / 417.1 MB, free: 8.914 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.2665, allocations: 188.2 kB / 417.3 MB, free: 8.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.741e-05/0.2666, allocations: 37.7 kB / 417.3 MB, free: 8.676 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.2667, allocations: 140.8 kB / 417.5 MB, free: 8.531 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.678e-05/0.2668, allocations: 83.36 kB / 417.6 MB, free: 8.449 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.2669, allocations: 73.95 kB / 417.6 MB, free: 8.371 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.267, allocations: 330.8 kB / 417.9 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002385/0.2673, allocations: 108.6 kB / 418.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002827/0.2676, allocations: 171.3 kB / 418.2 MB, free: 7.742 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005885/0.2682, allocations: 417.4 kB / 418.6 MB, free: 7.285 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/0.2682, allocations: 0 / 418.6 MB, free: 7.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0006943/0.2689, allocations: 439.5 kB / 419.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.01e-05/0.269, allocations: 101 kB / 419.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.269, allocations: 4 kB / 419.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.269, allocations: 0 / 419.2 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001927/0.2692, allocations: 39.92 kB / 419.2 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.2692, allocations: 7.938 kB / 419.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001743/0.2694, allocations: 39.77 kB / 419.2 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.2694, allocations: 8 kB / 419.3 MB, free: 6.617 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.00025/0.2697, allocations: 239.8 kB / 419.5 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.744e-05/0.2697, allocations: 31.8 kB / 419.5 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.305e-05/0.2698, allocations: 26.64 kB / 419.5 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.2698, allocations: 0 / 419.5 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.2698, allocations: 0 / 419.5 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.077e-06/0.2698, allocations: 0 / 419.5 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001435/0.2713, allocations: 0.9318 MB / 420.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.444e-06/0.2713, allocations: 0 / 420.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.2714, allocations: 23.92 kB / 420.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.2714, allocations: 4.031 kB / 420.5 MB, free: 5.277 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.037e-05/0.2715, allocations: 15.98 kB / 420.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.2715, allocations: 0 / 420.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2715, allocations: 0 / 420.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009508/0.2724, allocations: 0.6129 MB / 421.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.393e-05/0.2725, allocations: 112.8 kB / 421.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.302e-05/0.2726, allocations: 12 kB / 421.3 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.2728, allocations: 15.98 kB / 421.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.836e-05/0.2729, allocations: 31.95 kB / 421.3 MB, free: 4.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.685e-05/0.2729, allocations: 15.92 kB / 421.3 MB, free: 4.414 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001111/0.273, allocations: 139.2 kB / 421.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.273, allocations: 192 / 421.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003251/0.2734, allocations: 71.94 kB / 421.5 MB, free: 4.207 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.001299/0.2747, allocations: 1.187 MB / 422.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008701/0.2755, allocations: 0.5486 MB / 423.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.2756, allocations: 0 / 423.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005394/0.2761, allocations: 401 kB / 423.6 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/0.2768, allocations: 150.3 kB / 423.8 MB, free: 1.844 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003937/0.2807, allocations: 2.929 MB / 426.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004006/0.2811, allocations: 0.7484 MB / 427.5 MB, free: 14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001593/0.2813, allocations: 53.88 kB / 427.5 MB, free: 13.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.2814, allocations: 67.41 kB / 427.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2814, allocations: 0 / 427.6 MB, free: 13.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03071/0.3122, allocations: 6.554 MB / 434.1 MB, free: 7.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.997/8.309, allocations: 4 kB / 434.1 MB, free: 7.465 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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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