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.001289/0.001289, 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.00135/0.00135, allocations: 202 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.418/1.418, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 63.89 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2358/0.2375, allocations: 50.55 MB / 408.8 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.003781/0.2414, allocations: 2.383 MB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001303/0.2427, allocations: 0.7283 MB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.696e-05/0.2428, allocations: 11.94 kB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.2429, allocations: 27.72 kB / 412 MB, free: 14.28 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000109/0.2431, allocations: 55.48 kB / 412 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003607/0.2434, allocations: 107.7 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003354/0.2438, allocations: 275 kB / 412.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000219/0.244, allocations: 111 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002473/0.2443, allocations: 119.6 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001716/0.2444, allocations: 111.6 kB / 412.7 MB, free: 13.51 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.2445, allocations: 24 kB / 412.8 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.801e-05/0.2446, allocations: 28 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.911e-05/0.2447, allocations: 59.7 kB / 412.9 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.2448, allocations: 119.5 kB / 413 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003598/0.2452, allocations: 281.8 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2452, allocations: 0 / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2452, allocations: 4 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.2452, allocations: 0 / 413.2 MB, free: 13.01 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.001065/0.2463, allocations: 0.6793 MB / 413.9 MB, free: 12.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.2463, allocations: 8.031 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.299e-05/0.2464, allocations: 58.67 kB / 414 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001651/0.2466, allocations: 44.73 kB / 414 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003224/0.2469, allocations: 251.9 kB / 414.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.251e-05/0.247, allocations: 54.05 kB / 414.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.589e-05/0.247, allocations: 20.38 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005546/0.2476, allocations: 256.1 kB / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.2476, allocations: 0 / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.2477, allocations: 12 kB / 414.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.2477, allocations: 4 kB / 414.6 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005004/0.2482, allocations: 208.2 kB / 414.8 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.2495, allocations: 0.7526 MB / 415.6 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006049/0.2501, allocations: 295.2 kB / 415.9 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004336/0.2505, allocations: 224.5 kB / 416.1 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.663e-05/0.2506, allocations: 8 kB / 416.1 MB, free: 9.961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005252/0.2511, allocations: 316.3 kB / 416.4 MB, free: 9.621 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.573e-06/0.2511, allocations: 0 / 416.4 MB, free: 9.621 MB / 334.1 MB Notification: Performance of matching and sorting (n=31): time 0.001203/0.2523, allocations: 0.5711 MB / 417 MB, free: 9.031 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/0.2525, allocations: 203.9 kB / 417.2 MB, free: 8.789 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.2527, allocations: 188.2 kB / 417.4 MB, free: 8.594 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.82e-05/0.2527, allocations: 37.7 kB / 417.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001018/0.2528, allocations: 140.8 kB / 417.5 MB, free: 8.406 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.808e-05/0.2529, allocations: 79.38 kB / 417.6 MB, free: 8.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001062/0.253, allocations: 73.95 kB / 417.7 MB, free: 8.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001492/0.2532, allocations: 334.8 kB / 418 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002493/0.2534, allocations: 108.6 kB / 418.1 MB, free: 7.805 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002921/0.2537, allocations: 175.3 kB / 418.3 MB, free: 7.613 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005676/0.2543, allocations: 409.4 kB / 418.7 MB, free: 7.164 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.2543, allocations: 0 / 418.7 MB, free: 7.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007323/0.2551, allocations: 439.5 kB / 419.1 MB, free: 6.711 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.757e-05/0.2552, allocations: 97.12 kB / 419.2 MB, free: 6.598 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2552, allocations: 4 kB / 419.2 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/0.2552, allocations: 4 kB / 419.2 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001837/0.2554, allocations: 39.91 kB / 419.3 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.03e-05/0.2554, allocations: 11.92 kB / 419.3 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001793/0.2556, allocations: 39.77 kB / 419.3 MB, free: 6.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.457e-05/0.2556, allocations: 12 kB / 419.3 MB, free: 6.488 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.0002375/0.2559, allocations: 243.8 kB / 419.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.45e-05/0.2559, allocations: 27.8 kB / 419.6 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.151e-05/0.256, allocations: 22.66 kB / 419.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.256, allocations: 0 / 419.6 MB, free: 6.184 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.256, allocations: 4 kB / 419.6 MB, free: 6.18 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.256, allocations: 3.984 kB / 419.6 MB, free: 6.176 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001417/0.2574, allocations: 0.9279 MB / 420.5 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2574, allocations: 0 / 420.5 MB, free: 5.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001138/0.2576, allocations: 27.92 kB / 420.6 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.2576, allocations: 4 kB / 420.6 MB, free: 5.145 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.2576, allocations: 12.03 kB / 420.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.2576, allocations: 0 / 420.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.2576, allocations: 4 kB / 420.6 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.2586, allocations: 0.617 MB / 421.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.504e-05/0.2587, allocations: 104.8 kB / 421.3 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.752e-05/0.2588, allocations: 19.92 kB / 421.3 MB, free: 4.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002109/0.259, allocations: 23.98 kB / 421.3 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.722e-05/0.2591, allocations: 19.97 kB / 421.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.2591, allocations: 15.88 kB / 421.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001266/0.2593, allocations: 135.2 kB / 421.5 MB, free: 4.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2593, allocations: 4 kB / 421.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003298/0.2596, allocations: 75.94 kB / 421.6 MB, free: 4.07 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.001436/0.2611, allocations: 1.187 MB / 422.8 MB, free: 2.844 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008877/0.262, allocations: 0.5369 MB / 423.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.262, allocations: 0 / 423.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000528/0.2625, allocations: 409 kB / 423.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007717/0.2633, allocations: 140.8 kB / 423.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003985/0.2673, allocations: 2.933 MB / 426.8 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003788/0.2677, allocations: 0.7561 MB / 427.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001407/0.2678, allocations: 45.91 kB / 427.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.2679, allocations: 63.8 kB / 427.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2679, allocations: 0 / 427.7 MB, free: 13.76 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02849/0.2964, allocations: 6.559 MB / 434.2 MB, free: 7.336 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.188/8.485, allocations: 10.38 kB / 434.2 MB, free: 7.328 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.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