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: translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion") translateModel(Modelica.Electrical.Analog.Examples.AD_DA_conversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aD_Converter.z|pulse.T0|pulse.np",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 105.8 kB / 16.62 MB, free: 6.812 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.001791/0.001791, allocations: 189.8 kB / 17.55 MB, free: 5.953 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.364/1.364, allocations: 222.9 MB / 241.2 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001004, allocations: 47.23 kB / 300.1 MB, free: 6.215 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1058, allocations: 49.44 MB / 349.6 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.AD_DA_conversion): time 0.00367/0.1096, allocations: 2.402 MB / 352 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.1108, allocations: 0.6584 MB / 352.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001102/0.1109, allocations: 4 kB / 352.6 MB, free: 1.676 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001662/0.1111, allocations: 31.7 kB / 352.7 MB, free: 1.645 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000108/0.1112, allocations: 43.64 kB / 352.7 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003199/0.1116, allocations: 75.86 kB / 352.8 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003236/0.1119, allocations: 271.1 kB / 353 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002466/0.1121, allocations: 118.9 kB / 353.2 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000209/0.1124, allocations: 115.6 kB / 353.3 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001638/0.1125, allocations: 115.5 kB / 353.4 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.819e-05/0.1126, allocations: 24 kB / 353.4 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.486e-05/0.1126, allocations: 20 kB / 353.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.822e-05/0.1127, allocations: 47.84 kB / 353.5 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002508/0.113, allocations: 131.4 kB / 353.6 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003306/0.1133, allocations: 275.3 kB / 353.9 MB, free: 436 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1133, allocations: 0 / 353.9 MB, free: 436 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1133, allocations: 0 / 353.9 MB, free: 436 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.1133, allocations: 0 / 353.9 MB, free: 436 kB / 286.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.001223/0.1146, allocations: 0.6703 MB / 354.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.1146, allocations: 11.97 kB / 354.6 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.863e-05/0.1147, allocations: 28.66 kB / 354.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000286/0.115, allocations: 232.7 kB / 354.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.505e-05/0.1151, allocations: 46.27 kB / 354.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.981e-05/0.1151, allocations: 20.38 kB / 354.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007002/0.1158, allocations: 264.2 kB / 355.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.1159, allocations: 4 kB / 355.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.3e-05/0.1159, allocations: 8 kB / 355.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.1159, allocations: 7.938 kB / 355.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005087/0.1164, allocations: 204.1 kB / 355.4 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001358/0.1178, allocations: 0.7524 MB / 356.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007507/0.1186, allocations: 298.2 kB / 356.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005382/0.1191, allocations: 225 kB / 356.6 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.542e-05/0.1191, allocations: 7.984 kB / 356.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006354/0.1198, allocations: 316.3 kB / 356.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=31): time 3.467e-06/0.1198, allocations: 3.984 kB / 356.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=31): time 0.001199/0.121, allocations: 0.5713 MB / 357.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.1211, allocations: 199.9 kB / 357.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001507/0.1213, allocations: 178.3 kB / 357.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.538e-05/0.1213, allocations: 41.7 kB / 357.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.414e-05/0.1214, allocations: 136.7 kB / 358.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.937e-05/0.1215, allocations: 82.98 kB / 358.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001058/0.1216, allocations: 66.02 kB / 358.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.1218, allocations: 334.8 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002464/0.122, allocations: 108.6 kB / 358.6 MB, free: 11.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.1223, allocations: 171.3 kB / 358.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006544/0.123, allocations: 422.8 kB / 359.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.856e-06/0.123, allocations: 0 / 359.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.0007443/0.1237, allocations: 446.2 kB / 359.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.402e-05/0.1238, allocations: 97.09 kB / 359.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.355e-06/0.1238, allocations: 3.938 kB / 359.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.616e-05/0.1239, allocations: 4 kB / 359.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001967/0.1241, allocations: 35.92 kB / 359.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.1241, allocations: 7.938 kB / 359.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001876/0.1243, allocations: 35.83 kB / 359.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.1243, allocations: 8 kB / 359.8 MB, free: 10.04 MB / 302.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.0002468/0.1246, allocations: 241.6 kB / 360.1 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.631e-05/0.1246, allocations: 27.72 kB / 360.1 MB, free: 9.754 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.933e-05/0.1247, allocations: 26.58 kB / 360.1 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1247, allocations: 4 kB / 360.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.361e-06/0.1247, allocations: 0 / 360.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1248, allocations: 0 / 360.1 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001518/0.1263, allocations: 0.9317 MB / 361.1 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.1263, allocations: 0 / 361.1 MB, free: 8.719 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.1264, allocations: 27.92 kB / 361.1 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1264, allocations: 0 / 361.1 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.93e-05/0.1265, allocations: 11.98 kB / 361.1 MB, free: 8.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1265, allocations: 4 kB / 361.1 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1265, allocations: 0 / 361.1 MB, free: 8.676 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009415/0.1274, allocations: 0.6108 MB / 361.7 MB, free: 8.035 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.922e-05/0.1275, allocations: 92.86 kB / 361.8 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001263/0.1276, allocations: 23.92 kB / 361.8 MB, free: 7.902 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002384/0.1279, allocations: 23.98 kB / 361.8 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.959e-05/0.128, allocations: 23.97 kB / 361.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.556e-05/0.128, allocations: 7.984 kB / 361.9 MB, free: 7.848 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001001/0.1281, allocations: 139.2 kB / 362 MB, free: 7.711 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1281, allocations: 0 / 362 MB, free: 7.711 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000346/0.1285, allocations: 79.84 kB / 362.1 MB, free: 7.633 MB / 302.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.0001656/0.1286, allocations: 141 kB / 362.2 MB, free: 7.484 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001138/0.1298, allocations: 0.5676 MB / 362.8 MB, free: 6.883 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.1298, allocations: 0 / 362.8 MB, free: 6.883 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006/0.1304, allocations: 406.8 kB / 363.2 MB, free: 6.461 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007258/0.1311, allocations: 147 kB / 363.3 MB, free: 6.328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009997/0.1322, allocations: 0.6031 MB / 363.9 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.1325, allocations: 0.7484 MB / 364.7 MB, free: 4.922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001494/0.1327, allocations: 49.89 kB / 364.7 MB, free: 4.871 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.774e-05/0.1328, allocations: 19.44 kB / 364.8 MB, free: 4.852 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1328, allocations: 0 / 364.8 MB, free: 4.852 MB / 302.1 MB Notification: Performance of Templates: time 0.008366/0.1412, allocations: 4.206 MB / 369 MB, free: 0.707 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.AD_DA_conversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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/jenkins/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